Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for dumping Prometheus metrics to JSON #2890

Closed
5 tasks
romac opened this issue Nov 28, 2022 · 0 comments · Fixed by #2843
Closed
5 tasks

Add support for dumping Prometheus metrics to JSON #2890

romac opened this issue Nov 28, 2022 · 0 comments · Fixed by #2843
Assignees
Labels
I: telemetry Internal: related to Telemetry & metrics
Milestone

Comments

@romac
Copy link
Member

romac commented Nov 28, 2022

Summary

Add a ?format=json flag to the metrics endpoint to dump Prometheus metrics as JSON instead of Prometheus' bespoke text format.

This would make it easier in some cases to work with the metrics, eg. by allowing to use curl + jq to process the metrics.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate milestone (priority) applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@romac romac added this to the v1.2 milestone Nov 28, 2022
@romac romac self-assigned this Nov 28, 2022
@romac romac added I: telemetry Internal: related to Telemetry & metrics A: low-priority Admin: low priority / non urgent issue, expect longer wait time for PR reviews labels Nov 28, 2022
@seanchen1991 seanchen1991 removed the A: low-priority Admin: low priority / non urgent issue, expect longer wait time for PR reviews label Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: telemetry Internal: related to Telemetry & metrics
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants