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(metrics): add response_size, request_duration histograms #3748

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

IvoGoman
Copy link
Contributor

@IvoGoman IvoGoman commented Sep 13, 2024

Overview

This change adds additional handler metricsresponse_size_bytes and request_duration_seconds.
It replaces the dependency for felixge/httpsnoop with functions from prometheus/client_golang

What this PR does / why we need it

Closes #3698

Special notes for your reviewer

I have used default buckets for the histograms. I will try over the next week to get a custom build into my own QA landscape, in order to validate the buckets.

@nabokihms
Copy link
Member

LGTM!

The only problem is the signature

Commit sha: 09d9346, Author: Ivo Gosemann, Committer: Ivo Gosemann; Expected "Ivo Gosemann ivo.gosemann@sap.com", but got "IvoGoman ivo.gosemann@sap.com".

replaces felixge/httpsnoop with prometheus/client_golang instrumentation
adds histograms for response_size_bytes & request_duration_seconds

Signed-off-by: Ivo Gosemann <ivo.gosemann@sap.com>
Copy link
Member

@nabokihms nabokihms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this is a great enhancement.

@nabokihms nabokihms merged commit 1a16aa4 into dexidp:master Sep 17, 2024
9 checks passed
@IvoGoman IvoGoman deleted the feat/handler-metrics branch September 18, 2024 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose additional HTTP metrics
2 participants