prometheus / prometheus/client_js

Please consider adding a getClusterMetricsAsJSON funtion

Open
#470 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #471 by @PatrLind — closed without merging
enhancement good first issue help wanted
Dominant language
JavaScript
Stars
3.5k
Forks
429
Avg merge
3d 3h
Merged PRs (30d)
22

Description

At the moment it seems the cluster metrics are only available in the string format and not the JSON format.
I seems like it would be trivial to also add the JSON variant to the clusterMetrics function as well.
This way it would mirror how the non clustered metrics Registry interface work.

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 locating the clusterMetrics entry point and compare it with the non-clustered Registry interface mentioned in the issue. Check the closed pull request for prior context, then confirm that the requested JSON variant mirrors the existing string-format metrics behavior and has corresponding coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
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.