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: add metrics endpoint #8

Merged
merged 1 commit into from
Mar 1, 2024
Merged

feat: add metrics endpoint #8

merged 1 commit into from
Mar 1, 2024

Conversation

hensg
Copy link
Contributor

@hensg hensg commented Mar 1, 2024

Suggestion:

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

Only high level metrics are exported:

  • count by Path
  • size of requests/responses
  • latency

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

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

Only high level metrics are exported:
- count by paths
- size of requests/responses
- latency
@hensg
Copy link
Contributor Author

hensg commented Mar 1, 2024

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

@Kodylow
Copy link
Owner

Kodylow commented Mar 1, 2024

this is good to go, ty

@Kodylow Kodylow merged commit c10ca5d into Kodylow:master Mar 1, 2024
3 of 4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants