update state metrics help text

This commit is contained in:
William Banfield
2022-05-12 11:46:58 -04:00
parent 82dc36aab7
commit 7bdb826272
2 changed files with 4 additions and 2 deletions

View File

@@ -26,13 +26,13 @@ func PrometheusMetrics(namespace string, labelsAndValues ...string) *Metrics {
Namespace: namespace,
Subsystem: MetricsSubsystem,
Name: "consensus_param_updates",
Help: "ConsensusParamUpdates is the total number of times the application has udated the consensus params since process start.",
Help: "Number of consensus parameter updates returned by the application since process start.",
}, labels).With(labelsAndValues...),
ValidatorSetUpdates: prometheus.NewCounterFrom(stdprometheus.CounterOpts{
Namespace: namespace,
Subsystem: MetricsSubsystem,
Name: "validator_set_updates",
Help: "ValidatorSetUpdates is the total number of times the application has udated the validator set since process start.",
Help: "Number of validator set updates returned by the application since process start.",
}, labels).With(labelsAndValues...),
}
}

View File

@@ -19,9 +19,11 @@ type Metrics struct {
// ConsensusParamUpdates is the total number of times the application has
// udated the consensus params since process start.
//metrics:Number of consensus parameter updates returned by the application since process start.
ConsensusParamUpdates metrics.Counter
// ValidatorSetUpdates is the total number of times the application has
// udated the validator set since process start.
//metrics:Number of validator set updates returned by the application since process start.
ValidatorSetUpdates metrics.Counter
}