Skip to content

Commit

Permalink
tidb,session: fix session retry metrics (pingcap#2523)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao authored and coocood committed Jan 21, 2017
1 parent dc2ec28 commit 884f772
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions domain/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ var (
loadSchemaCounter = prometheus.NewCounterVec(
prometheus.CounterOpts{
Namespace: "tidb",
Subsystem: "server",
Subsystem: "domain",
Name: "load_schema_total",
Help: "Counter of load schema",
}, []string{"type"})

loadSchemaDuration = prometheus.NewHistogram(
prometheus.HistogramOpts{
Namespace: "tidb",
Subsystem: "server",
Subsystem: "domain",
Name: "load_schema_duration",
Help: "Bucketed histogram of processing time (s) in load schema.",
Buckets: prometheus.ExponentialBuckets(0.001, 2, 15),
Expand Down
1 change: 1 addition & 0 deletions metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ func init() {
prometheus.MustRegister(sessionExecuteCompileDuration)
prometheus.MustRegister(sessionExecuteRunDuration)
prometheus.MustRegister(schemaLeaseErrorCounter)
prometheus.MustRegister(sessionRetry)
}

0 comments on commit 884f772

Please sign in to comment.