We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently dex exposes only http_requests_total{handler="", code="",method=""} as a metric. The method used to calculate these metrics also collect the Duration and Response size written. https://github.com/felixge/httpsnoop/blob/master/capture_metrics.go#L46-L82 These metrics are not exposed.
http_requests_total{handler="", code="",method=""}
Additional histogram metrics:
http_request_duration_seconds{handler="", code="", method=""}
http_response_size_bytes{handler="", code="", method=""}
Which can be added to the handler instrumentalization here:
dex/server/server.go
Lines 335 to 356 in 5c66c71
Since native histograms are not yet GA, there is the open question of which Buckets make sense for these metrics.
No response
The text was updated successfully, but these errors were encountered:
@IvoGoman the idea seems nice. Would you like to go ahead and make the change?
Sorry, something went wrong.
Yes, I will open a PR for this later this week.
Successfully merging a pull request may close this issue.
Preflight Checklist
Problem Description
Currently dex exposes only
http_requests_total{handler="", code="",method=""}
as a metric. The method used to calculate these metrics also collect the Duration and Response size written. https://github.com/felixge/httpsnoop/blob/master/capture_metrics.go#L46-L82These metrics are not exposed.
Proposed Solution
Additional histogram metrics:
http_request_duration_seconds{handler="", code="", method=""}
http_response_size_bytes{handler="", code="", method=""}
.Which can be added to the handler instrumentalization here:
dex/server/server.go
Lines 335 to 356 in 5c66c71
Since native histograms are not yet GA, there is the open question of which Buckets make sense for these metrics.
Alternatives Considered
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: