Skip to content

Commit 10c6d96

Browse files
yuzhibotao余国聪
authored andcommitted
Add the node_exporter instance of the server where the tiflash-server is located to prometheus.yml (pingcap#1083)
1 parent 56978fa commit 10c6d96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/cluster/spec/prometheus.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ func (i *MonitorInstance) InitConfig(
188188
if servers, found := topoHasField("TiFlashServers"); found {
189189
for i := 0; i < servers.Len(); i++ {
190190
flash := servers.Index(i).Interface().(TiFlashSpec)
191+
uniqueHosts.Insert(flash.Host)
191192
cfig.AddTiFlashLearner(flash.Host, uint64(flash.FlashProxyStatusPort))
192193
cfig.AddTiFlash(flash.Host, uint64(flash.StatusPort))
193194
}

0 commit comments

Comments
 (0)