From 6669560cb9cbb7543c061b8ff2d66c43759a61be Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 28 Jul 2020 13:04:26 -0700 Subject: [PATCH] turn-off bucket usage metrics in gateway mode (#10150) closes #10147 --- cmd/metrics.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/metrics.go b/cmd/metrics.go index 3f6e9e604..74a3a1e94 100644 --- a/cmd/metrics.go +++ b/cmd/metrics.go @@ -378,6 +378,10 @@ func bucketUsageMetricsPrometheus(ch chan<- prometheus.Metric) { return } + if globalIsGateway { + return + } + // Crawler disabled, nothing to do. if env.Get(envDataUsageCrawlConf, config.EnableOn) != config.EnableOn { return