1
0
mirror of https://github.com/minio/minio.git synced 2025-04-12 23:42:22 -04:00

turn-off bucket usage metrics in gateway mode ()

closes 
This commit is contained in:
Harshavardhana 2020-07-28 13:04:26 -07:00 committed by GitHub
parent b46ab7e921
commit 6669560cb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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