From a64ecaf6793e325fd8dbe22cf5a5ce04b1b4e5dd Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Mon, 30 Aug 2021 09:41:45 +0200 Subject: [PATCH] Fix missing quantile in latency_microseconds_total metrics The quantile has to be added manually since a couple of prometheus client releases and we missed that. Adding an integration test to ensure that the quantile exist in the future. Signed-off-by: Sascha Grunert --- server/metrics/metrics.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/metrics/metrics.go b/server/metrics/metrics.go index 29221aee6a5..e590426e976 100644 --- a/server/metrics/metrics.go +++ b/server/metrics/metrics.go @@ -53,9 +53,10 @@ var ( // type. CRIOOperationsLatency = prometheus.NewSummaryVec( prometheus.SummaryOpts{ - Subsystem: subsystem, - Name: CRIOOperationsLatencyKey, - Help: "Latency in microseconds of CRI-O operations. Broken down by operation type.", + Subsystem: subsystem, + Name: CRIOOperationsLatencyKey, + Help: "Latency in microseconds of CRI-O operations. Broken down by operation type.", + Objectives: map[float64]float64{0.5: 0.05, 0.9: 0.01, 0.99: 0.001}, }, []string{"operation_type"}, )