From f3b8a891af61e4d49af916b77aa0807bff57314b Mon Sep 17 00:00:00 2001 From: Bruno Abrantes Date: Wed, 6 Aug 2025 08:56:59 +0200 Subject: [PATCH] chore: use native histogram for search shadow traffic match percentage (#109189) Signed-off-by: Bruno Abrantes --- pkg/storage/unified/resource/search_client.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkg/storage/unified/resource/search_client.go b/pkg/storage/unified/resource/search_client.go index 4f6ecc76902..08596f67ab3 100644 --- a/pkg/storage/unified/resource/search_client.go +++ b/pkg/storage/unified/resource/search_client.go @@ -24,11 +24,12 @@ var ( // searchResultsMatchHistogram tracks the percentage match between legacy and unified search results searchResultsMatchHistogram = promauto.NewHistogramVec( prometheus.HistogramOpts{ - Namespace: "grafana", - Subsystem: "unified_storage", - Name: "search_results_match_percentage", - Help: "Histogram of percentage match between legacy and unified search results", - Buckets: []float64{0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100}, + Namespace: "grafana", + Subsystem: "unified_storage", + Name: "search_results_match_percentage", + Help: "Native histogram of percentage match between legacy and unified search results", + NativeHistogramBucketFactor: 1.1, + NativeHistogramMaxBucketNumber: 100, }, []string{"resource_type"}, )