Merge pull request #1971 from pingcap/shuning/fix-metrics-push

tidb-server:fix metrics push way
This commit is contained in:
ShuNing
2016-11-08 10:17:17 +00:00
committed by GitHub

View File

@ -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,