From 82dc36aab7716278dbf9585714aa170ecaa37a7e Mon Sep 17 00:00:00 2001 From: William Banfield Date: Thu, 12 May 2022 11:46:07 -0400 Subject: [PATCH] update mempool metrics help text --- internal/mempool/metrics.gen.go | 4 ++-- internal/mempool/metrics.go | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/mempool/metrics.gen.go b/internal/mempool/metrics.gen.go index 2bb896137..100c5e71c 100644 --- a/internal/mempool/metrics.gen.go +++ b/internal/mempool/metrics.gen.go @@ -38,13 +38,13 @@ func PrometheusMetrics(namespace string, labelsAndValues ...string) *Metrics { Namespace: namespace, Subsystem: MetricsSubsystem, Name: "rejected_txs", - Help: "RejectedTxs defines the number of rejected transactions. These are transactions that passed CheckTx but failed to make it into the mempool due to resource limits, e.g. mempool is full and no lower priority transactions exist in the mempool.", + Help: "Number of rejected transactions.", }, labels).With(labelsAndValues...), EvictedTxs: prometheus.NewCounterFrom(stdprometheus.CounterOpts{ Namespace: namespace, Subsystem: MetricsSubsystem, Name: "evicted_txs", - Help: "EvictedTxs defines the number of evicted transactions. These are valid transactions that passed CheckTx and existed in the mempool but were later evicted to make room for higher priority valid transactions that passed CheckTx.", + Help: "Number of evicted transactions.", }, labels).With(labelsAndValues...), RecheckTimes: prometheus.NewCounterFrom(stdprometheus.CounterOpts{ Namespace: namespace, diff --git a/internal/mempool/metrics.go b/internal/mempool/metrics.go index 3a250a81b..532307635 100644 --- a/internal/mempool/metrics.go +++ b/internal/mempool/metrics.go @@ -28,12 +28,14 @@ type Metrics struct { // transactions that passed CheckTx but failed to make it into the mempool // due to resource limits, e.g. mempool is full and no lower priority // transactions exist in the mempool. + //metrics:Number of rejected transactions. RejectedTxs metrics.Counter // EvictedTxs defines the number of evicted transactions. These are valid // transactions that passed CheckTx and existed in the mempool but were later // evicted to make room for higher priority valid transactions that passed // CheckTx. + //metrics:Number of evicted transactions. EvictedTxs metrics.Counter // Number of times transactions are rechecked in the mempool.