diff --git a/tidb-server/main.go b/tidb-server/main.go index 81f3eb18bb..1df06b09a9 100644 --- a/tidb-server/main.go +++ b/tidb-server/main.go @@ -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,