Merge pull request #1971 from pingcap/shuning/fix-metrics-push
tidb-server:fix metrics push way
This commit is contained in:
@ -186,7 +186,7 @@ func prometheusPushClient(addr string, interval time.Duration) {
|
||||
// TODO: TiDB do not have uniq name, so we use host+port to compose a name.
|
||||
job := "tidb"
|
||||
for {
|
||||
err := push.FromGatherer(
|
||||
err := push.AddFromGatherer(
|
||||
job, push.HostnameGroupingKey(),
|
||||
addr,
|
||||
prometheus.DefaultGatherer,
|
||||
|
||||
Reference in New Issue
Block a user