turn-off bucket usage metrics in gateway mode (#10150)

closes #10147
master
Harshavardhana 4 years ago committed by GitHub
parent b46ab7e921
commit 6669560cb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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

Loading…
Cancel
Save