Skip to content

Commit

Permalink
Update prometheus.go (#1012)
Browse files Browse the repository at this point in the history
Tiny fix for the Prometheus configuration loss caused by Drainer spelling problem

Co-authored-by: Ti Prow Robot <71242396+ti-community-prow-bot@users.noreply.github.com>
  • Loading branch information
SE-Bin and ti-chi-bot authored Dec 26, 2020
1 parent aeacaf9 commit 24289a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/spec/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (i *MonitorInstance) InitConfig(
cfig.AddPump(pump.Host, uint64(pump.Port))
}
}
if servers, found := topoHasField("Trainers"); found {
if servers, found := topoHasField("Drainers"); found {
for i := 0; i < servers.Len(); i++ {
drainer := servers.Index(i).Interface().(DrainerSpec)
uniqueHosts.Insert(drainer.Host)
Expand Down

0 comments on commit 24289a3

Please sign in to comment.