Skip to content

Commit

Permalink
Correct role
Browse files Browse the repository at this point in the history
  • Loading branch information
freddielunchbird committed Aug 9, 2023
1 parent d7b1a32 commit 42de613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmon_sd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 42de613

Please sign in to comment.