Skip to content

Commit

Permalink
benchkv: just register metrics handler (pingcap#1679)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngaut authored and shenli committed Sep 2, 2016
1 parent 3284b85 commit a9ac57b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchkv/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ func Init() {
prometheus.MustRegister(txnCounter)
prometheus.MustRegister(txnRolledbackCounter)
prometheus.MustRegister(txnDurations)
http.Handle("/metrics", prometheus.Handler())

go http.ListenAndServe(":9191", prometheus.Handler())
go http.ListenAndServe(":9191", nil)
}

// without conflict
Expand Down

0 comments on commit a9ac57b

Please sign in to comment.