prometheus / prometheus/client_js
nodejs_active_handles_total violates the Prometheus collection policy, and should be deleted
Open
Beginner friendly
Nobody has claimed this yet.
help wanted
semver-major
- Dominant language
- JavaScript
- Stars
- 3.5k
- Forks
- 429
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 22
Description
Checking the default metrics with promtool complains about breaking compliancy with official Prometheus Naming Convention (https://prometheus.io/docs/practices/naming/), e.g.:
$ curl -s http://localhost:3000/metrics | promtool check metrics
nodejs_active_handles_total non-counter metrics should not have "_total" suffix
nodejs_active_requests_total non-counter metrics should not have "_total" suffix
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 inspecting the default metrics exposed at the /metrics endpoint and locate the definitions of nodejs_active_handles_total and nodejs_active_requests_total. Run promtool check metrics against the output; done means these non-counter metrics no longer trigger the Prometheus naming-policy errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js, prometheus
- Domain
- observability
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100