-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 ipfs_http_request
metrics are not exposed
#7983
Comments
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
Finally, remember to use https://discuss.ipfs.io if you just need general support. |
CC @lanzafame @aschmahmann, a potential regression from #7593 |
cc @marten-seemann if you have time to take a look |
Sorry, this one is on me. #7986 contains the fix. |
The fix looks good to me. That's the exact same one I have on my configuration. |
Version information:
Custom implementation not using the cli
go-ipfs version: v0.8.0 tag
System version: amd64/linux
Golang version: 1.15.8
Description:
Starting v0.8.0, prometheus metrics exposed by
MetricsCollectionOption
are not exposed to prometheus DefaultRegisterer.When OpenCensus Metrics were added, all
prometheus.Register
ofMetricsCollectionOption
were changed to register on a new custom registry. There are no comment on this change in the PR or in the changelog for v0.8.0.This registry is not returned and does not include any collector. So while metrics are still registered, I cannot find how to expose them.
A possible fix is to remove the addition of this new registry for this metric. An other option is to expose this new registry as a global variable which can then be collected.
The text was updated successfully, but these errors were encountered: