prometheus / prometheus/client_js

Support for aggregation-gateway

Open
#319 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
3.5k
Forks
429
Avg merge
3d 3h
Merged PRs (30d)
22

Description

Hey 👋 , thanks for an excellent library.

We are trying to use an aggregation-gateway in order to collect build times of devs.

The aggregation gateway expects all metrics to be pushed to /api/ui/metrics but pushing to this URL doesn't seem possible with prom-client as it seems to always append /metrics/job/{jobName} to the URL.

For our use case it would be ideal if we could override the full URL that is used to push metrics to. Is this something that could be implemented within prom-client? Happy to open a PR if it is

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how prom-client constructs the push URL and where it appends /metrics/job/{jobName}. The change is complete when callers can configure the full aggregation-gateway URL, including /api/ui/metrics, and the behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs, prometheus
Domain
observability
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.