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

Prometheus metric is not registered #13

Closed
krpn opened this issue Feb 7, 2019 · 2 comments
Closed

Prometheus metric is not registered #13

krpn opened this issue Feb 7, 2019 · 2 comments

Comments

@krpn
Copy link

krpn commented Feb 7, 2019

Prometheus metrics must be registered. Not registered metrics are not avaliable in metrics path.

There are two ways to resolve it:
*Add metric registration in constructor
*Make metric variable public and delegate registration to developer

@hexdigest
Copy link
Owner

@krpn thank you for raising the issue!

I like the first option better. Please check the new version of the prometheus template.

@krpn
Copy link
Author

krpn commented Feb 7, 2019

Now it works. Thank you, @hexdigest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants