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

feat(graphqlmetrics): enable prometheus metrics #963

Conversation

AndreasZeissner
Copy link
Contributor

@AndreasZeissner AndreasZeissner commented Jul 25, 2024

Motivation and Context

This PR introduces exposing metrics on the graphqlmetrics service.
The prometheus export can be enabled by using the following environment variables:

PROMETHEUS_ENABLED: enable or disable exposing metrics defaults to false
PROMETHEUS_LISTEN_ADDR: the listen address for the prometheus server defaults to 127.0.0.1:8088 to exposing metrics to the public bt accident
PROMETHEUS_PATH: the path to expose the metrics on defaults to /metrics

TODO

- decouples router from graphqlmetrics
- enables using new version of the middleware instrumentation
@AndreasZeissner AndreasZeissner changed the title DRAFT feat(graphqlmetrics): enable prometheus metrics feat(graphqlmetrics): enable prometheus metrics Jul 25, 2024
@AndreasZeissner AndreasZeissner marked this pull request as ready for review July 26, 2024 13:11
@AndreasZeissner AndreasZeissner merged commit 48f54fe into main Aug 1, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants