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

Allow prometheus to scrape metrics #9285

Closed
bartusz01 opened this issue May 22, 2023 · 2 comments
Closed

Allow prometheus to scrape metrics #9285

bartusz01 opened this issue May 22, 2023 · 2 comments
Assignees
Labels
backlog This is not on the Weblate roadmap for now. Can be prioritized by sponsorship. enhancement Adding or requesting a new feature. help wanted Extra attention is needed.
Milestone

Comments

@bartusz01
Copy link

Describe the problem

Currently weblate offers two formats, "json" and "api" to expose metrics
https://docs.weblate.org/en/latest/api.html,

Prometheus only supports "text/plain; version=0.0.4", see here: https://prometheus.io/docs/instrumenting/exposition_formats/

So prometheus is not able to scrape weblate metrics, unless creating/deploying a json exporter.

Describe the solution you'd like

a third option to weblates REST API response format (for /api/metrics/)

Describe alternatives you've considered

deploying additionally an unofficial json exporter

Screenshots

No response

Additional context

No response

@nijel nijel added enhancement Adding or requesting a new feature. backlog This is not on the Weblate roadmap for now. Can be prioritized by sponsorship. labels May 23, 2023
@github-actions
Copy link

This issue has been added to the backlog. It is not scheduled on the Weblate roadmap, but it eventually might be implemented.

In case you need this feature soon, please consider helping or push it by funding the development.

@nijel nijel added the help wanted Extra attention is needed. label May 23, 2023
@nijel nijel self-assigned this Jun 19, 2024
@nijel nijel added this to the 5.6.1 milestone Jun 19, 2024
@nijel nijel closed this as completed in 60aa7a8 Jun 19, 2024
Copy link

Thank you for your report; the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog This is not on the Weblate roadmap for now. Can be prioritized by sponsorship. enhancement Adding or requesting a new feature. help wanted Extra attention is needed.
Projects
None yet
Development

No branches or pull requests

2 participants