feat: add response time histogram metric
Some checks are pending
Cadoles/bouncer/pipeline/pr-master Build started...

This commit is contained in:
2025-08-25 10:40:51 +02:00
parent bc8ad02c13
commit a9a3bdbee7
3 changed files with 63 additions and 15 deletions

View File

@ -18,3 +18,12 @@ var metricProxyRequestsTotal = promauto.NewCounterVec(
},
[]string{metricLabelProxy},
)
var metricProxyResponsesDurationSeconds = promauto.NewHistogramVec(
prometheus.HistogramOpts{
Name: "proxy_responses_duration_seconds",
Help: "Bouncer proxy responses duration",
Namespace: metricNamespace,
},
[]string{metricLabelProxy},
)