From d2f65bf4842ecbbecc8946fd4287315aadfab66f Mon Sep 17 00:00:00 2001 From: Charles Korn Date: Tue, 11 Jun 2024 15:22:30 +1000 Subject: [PATCH] Reduce bucket factor for relative performance metrics --- tools/querytee/proxy_metrics.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/querytee/proxy_metrics.go b/tools/querytee/proxy_metrics.go index a022b4fcda0..10459f1639d 100644 --- a/tools/querytee/proxy_metrics.go +++ b/tools/querytee/proxy_metrics.go @@ -49,13 +49,13 @@ func NewProxyMetrics(registerer prometheus.Registerer) *ProxyMetrics { Namespace: queryTeeMetricsNamespace, Name: "backend_response_relative_duration_seconds", Help: "Time (in seconds) of preferred backend less secondary backend.", - NativeHistogramBucketFactor: 2, + NativeHistogramBucketFactor: 1.1, }, []string{"route"}), proportionalDuration: promauto.With(registerer).NewHistogramVec(prometheus.HistogramOpts{ Namespace: queryTeeMetricsNamespace, Name: "backend_response_relative_duration_proportional", Help: "Response time of preferred backend, as a proportion of secondary backend response time.", - NativeHistogramBucketFactor: 2, + NativeHistogramBucketFactor: 1.1, }, []string{"route"}), }