From 1417acad863ad95df0f53b4f44dcbc4a607caf7c Mon Sep 17 00:00:00 2001 From: nolouch Date: Mon, 7 Nov 2016 19:34:56 +0800 Subject: [PATCH] tidb-server:fix metrics push way --- tidb-server/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,