|
75 | 75 | TiKVRangeTaskPushDuration *prometheus.HistogramVec
|
76 | 76 | TiKVTokenWaitDuration prometheus.Histogram
|
77 | 77 | TiKVTxnHeartBeatHistogram *prometheus.HistogramVec
|
| 78 | + TiKVTTLManagerHistogram prometheus.Histogram |
78 | 79 | TiKVPessimisticLockKeysDuration prometheus.Histogram
|
79 | 80 | TiKVTTLLifeTimeReachCounter prometheus.Counter
|
80 | 81 | TiKVNoAvailableConnectionCounter prometheus.Counter
|
@@ -422,6 +423,15 @@ func initMetrics(namespace, subsystem string) {
|
422 | 423 | Buckets: prometheus.ExponentialBuckets(0.001, 2, 20), // 1ms ~ 524s
|
423 | 424 | }, []string{LblType})
|
424 | 425 |
|
| 426 | + TiKVTTLManagerHistogram = prometheus.NewHistogram( |
| 427 | + prometheus.HistogramOpts{ |
| 428 | + Namespace: namespace, |
| 429 | + Subsystem: subsystem, |
| 430 | + Name: "txn_ttl_manager", |
| 431 | + Help: "Bucketed histogram of the txn ttl manager lifetime duration.", |
| 432 | + Buckets: prometheus.ExponentialBuckets(1, 2, 20), // 1s ~ 524288s |
| 433 | + }) |
| 434 | + |
425 | 435 | TiKVPessimisticLockKeysDuration = prometheus.NewHistogram(
|
426 | 436 | prometheus.HistogramOpts{
|
427 | 437 | Namespace: namespace,
|
@@ -677,6 +687,7 @@ func RegisterMetrics() {
|
677 | 687 | prometheus.MustRegister(TiKVRangeTaskPushDuration)
|
678 | 688 | prometheus.MustRegister(TiKVTokenWaitDuration)
|
679 | 689 | prometheus.MustRegister(TiKVTxnHeartBeatHistogram)
|
| 690 | + prometheus.MustRegister(TiKVTTLManagerHistogram) |
680 | 691 | prometheus.MustRegister(TiKVPessimisticLockKeysDuration)
|
681 | 692 | prometheus.MustRegister(TiKVTTLLifeTimeReachCounter)
|
682 | 693 | prometheus.MustRegister(TiKVNoAvailableConnectionCounter)
|
|
0 commit comments