prometheus / prometheus/client_js
Support for aggregation-gateway
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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