Skip to content

Commit

Permalink
metric: rename CreateDDL to CreateDDLInstance (pingcap#6480)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhexuany authored and coocood committed May 7, 2018
1 parent 4185e53 commit 2dbab72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ddl/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func newDDL(ctx context.Context, etcdCli *clientv3.Client, store kv.Storage,
variable.RegisterStatistics(d)

log.Infof("[ddl] start DDL:%s", d.uuid)
metrics.DDLCounter.WithLabelValues(metrics.CreateDDL).Inc()
metrics.DDLCounter.WithLabelValues(metrics.CreateDDLInstance).Inc()
return d
}

Expand Down
8 changes: 4 additions & 4 deletions metrics/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ var (
Buckets: prometheus.ExponentialBuckets(0.001, 2, 20),
}, []string{LblType, LblResult})

CreateDDL = "create_ddl"
CreateDDLWorker = "create_ddl_worker"
IsDDLOwner = "is_ddl_owner"
DDLCounter = prometheus.NewCounterVec(
CreateDDLInstance = "create_ddl_instance"
CreateDDLWorker = "create_ddl_worker"
IsDDLOwner = "is_ddl_owner"
DDLCounter = prometheus.NewCounterVec(
prometheus.CounterOpts{
Namespace: "tidb",
Subsystem: "ddl",
Expand Down

0 comments on commit 2dbab72

Please sign in to comment.