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

Custom Prometheus metrics not showing #63

Open
CharlieC3 opened this issue Dec 5, 2024 · 3 comments
Open

Custom Prometheus metrics not showing #63

CharlieC3 opened this issue Dec 5, 2024 · 3 comments

Comments

@CharlieC3
Copy link
Member

It seems only the Prometheus metrics that come out of the box are displaying on the /metrics page, and none of the custom ones wired up here: https://github.com/hirosystems/signer-metrics-api/blob/main/src/api/routes/prom-metrics.ts

@zone117x
Copy link
Member

zone117x commented Dec 9, 2024

@CharlieC3 I separated the signer related metrics so they could be public (compared to the default ones on the private prometheus port). They are exposed at https://api.hiro.so/signer-metrics/metrics

Does that work? I could also include these in the private endpoint if that's easier.

@CharlieC3
Copy link
Member Author

Hmm I'm not sure we should be exposing Prometheus metrics on a public endpoint, it's a paradigm we haven't followed in other apps because it invites more scrapers (in addition to the ones we have now), and it doesn't use the standard prom port.

The reason why Hank exposed it for us was to get Hiros dashboards up and running sooner for helping in Nakamoto.

Do you have any preferences here?

@zone117x
Copy link
Member

We can move it to the private endpoint 👍

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

No branches or pull requests

2 participants