add rounds metric

This commit is contained in:
Anton Kaliaev
2018-06-15 14:45:21 +04:00
parent e58d674f4c
commit 0cb50c05fc
3 changed files with 7 additions and 0 deletions

View File

@ -102,6 +102,11 @@ func DefaultMetricsProvider() *cs.Metrics {
Name: "height",
Help: "Height of the chain.",
}, []string{}),
Rounds: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{
Subsystem: "consensus",
Name: "rounds",
Help: "Number of rounds.",
}, []string{}),
Validators: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{
Subsystem: "consensus",