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