From 74f5938bd8a2137705ceaa00305376d5778db4db Mon Sep 17 00:00:00 2001 From: niejiangang <18757593931@163.com> Date: Mon, 1 Apr 2024 10:24:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BD=BF=E7=94=A8Prom?= =?UTF-8?q?etheus=E4=BD=9C=E4=B8=BA=E6=8C=87=E6=A0=87=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=BA=90=E6=97=B6,=E7=BB=93=E6=9E=9C=E5=8D=95=E4=BD=8D?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chaos/backend/tools/prometheuscli/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaos/backend/tools/prometheuscli/helper.go b/chaos/backend/tools/prometheuscli/helper.go index faa9ace..978cc7c 100644 --- a/chaos/backend/tools/prometheuscli/helper.go +++ b/chaos/backend/tools/prometheuscli/helper.go @@ -8,7 +8,7 @@ import ( var histogramQuantileMetric string = `histogram_quantile(%f,sum(rate(kindling_span_trace_duration_nanoseconds_bucket{content_key="%s"}[%s])) by (le))` var requestCallsRateMetric string = `sum by (content_key) (rate(kindling_span_trace_duration_nanoseconds_count{content_key="%s"}[%s]))` var requestCallsAvgLatency string = `sum by (content_key) (rate(kindling_span_trace_duration_nanoseconds_sum{content_key="%s"}[%s])) -/sum by (content_key) (rate(kindling_span_trace_duration_nanoseconds_count{content_key="%s"}[%s]))/1000000` +/sum by (content_key) (rate(kindling_span_trace_duration_nanoseconds_count{content_key="%s"}[%s]))` var defaultDuration = "6h" -- Gitee