Skip to content

Commit

Permalink
Add the node_exporter instance of the server where the tiflash-server…
Browse files Browse the repository at this point in the history
… is located to prometheus.yml (#1083)
  • Loading branch information
yuzhibotao authored Jan 20, 2021
1 parent 57e13bd commit d4881ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cluster/spec/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ func (i *MonitorInstance) InitConfig(
if servers, found := topoHasField("TiFlashServers"); found {
for i := 0; i < servers.Len(); i++ {
flash := servers.Index(i).Interface().(TiFlashSpec)
uniqueHosts.Insert(flash.Host)
cfig.AddTiFlashLearner(flash.Host, uint64(flash.FlashProxyStatusPort))
cfig.AddTiFlash(flash.Host, uint64(flash.StatusPort))
}
Expand Down

0 comments on commit d4881ba

Please sign in to comment.