From 82e2a9cc5ca70276277baf8b43102422bedf728b Mon Sep 17 00:00:00 2001 From: Krishna Ravishankar Date: Mon, 2 Oct 2023 15:27:03 -0400 Subject: [PATCH] [Metricsfetcher] Change broker query to use last instead of rollup --- cmd/metricsfetcher/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/metricsfetcher/main.go b/cmd/metricsfetcher/main.go index b92af10..1df53d9 100644 --- a/cmd/metricsfetcher/main.go +++ b/cmd/metricsfetcher/main.go @@ -61,7 +61,7 @@ func init() { } // Complete query string. - config.BrokerQuery = fmt.Sprintf("%s by {%s}.rollup(avg, %d)", *bq, config.BrokerIDTag, config.Span) + config.BrokerQuery = fmt.Sprintf("%s by {%s}.fill(last)", *bq, config.BrokerIDTag) config.PartnQuery = fmt.Sprintf("%s.rollup(avg, %d)", *pq, config.Span) }