Skip to content

Commit

Permalink
Merge pull request pingcap#1971 from pingcap/shuning/fix-metrics-push
Browse files Browse the repository at this point in the history
tidb-server:fix metrics push way
  • Loading branch information
nolouch authored Nov 8, 2016
2 parents c12a53f + 5e65128 commit b0dd87f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tidb-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b0dd87f

Please sign in to comment.