Kodylow / fedimint-http

MIT License
12 stars 14 forks source link

feat: add metrics endpoint #8

Closed hensg closed 6 months ago

hensg commented 6 months ago

Suggestion:

Exposes the API /metrics following semantic conventions for HTTP metrics (OpenTelemetry) with a Prometheus exporter.

Only high level metrics are exported:

Feel free to reject if you think that it doesn't fit the API purposes

hensg commented 6 months ago

The /metrics route can be conditionally integrated into the router, controlled by a startup parameter specified in Args, for instance.

Kodylow commented 6 months ago

this is good to go, ty