diff --git a/cmon_sd.go b/cmon_sd.go index a0b9d9a..042656b 100644 --- a/cmon_sd.go +++ b/cmon_sd.go @@ -108,7 +108,7 @@ func IndexHandler(w http.ResponseWriter, r *http.Request) { } if host.Nodetype == "mongo" { - if host.Role == "mongo" { + if host.Role == "shardsvr" { temp.Target = append(temp.Target, host.IP+":9216") // mongo exporter } if host.Role == "mongos" {