Fix hdfs gateway concurrent map writes (#13596)

Co-authored-by: Harshavardhana <harsha@minio.io>
This commit is contained in:
Daniel A. Ochoa
2021-11-08 11:07:58 -06:00
committed by GitHub
parent 4f3317effe
commit 07dd0692b6
2 changed files with 9 additions and 0 deletions

View File

@@ -108,6 +108,10 @@ func (c *minioCollector) Collect(ch chan<- prometheus.Metric) {
}
func nodeHealthMetricsPrometheus(ch chan<- prometheus.Metric) {
if globalIsGateway {
return
}
nodesUp, nodesDown := GetPeerOnlineCount()
ch <- prometheus.MustNewConstMetric(
prometheus.NewDesc(