mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-30 19:51:58 +00:00
extract metrics to provider, remove height label
This commit is contained in:
@@ -13,6 +13,8 @@ type Metrics struct {
|
||||
MissingValidators metrics.Gauge
|
||||
// number of validators who tried to double sign
|
||||
ByzantineValidators metrics.Gauge
|
||||
// time between this and the last block
|
||||
BlockIntervalSeconds metrics.Histogram
|
||||
// number of transactions
|
||||
NumTxs metrics.Gauge
|
||||
// total number of transactions
|
||||
@@ -24,12 +26,13 @@ type Metrics struct {
|
||||
// NopMetrics returns no-op Metrics.
|
||||
func NopMetrics() *Metrics {
|
||||
return &Metrics{
|
||||
Height: discard.NewCounter(),
|
||||
Validators: discard.NewGauge(),
|
||||
MissingValidators: discard.NewGauge(),
|
||||
ByzantineValidators: discard.NewGauge(),
|
||||
NumTxs: discard.NewGauge(),
|
||||
TotalTxs: discard.NewCounter(),
|
||||
BlockSizeBytes: discard.NewGauge(),
|
||||
Height: discard.NewCounter(),
|
||||
Validators: discard.NewGauge(),
|
||||
MissingValidators: discard.NewGauge(),
|
||||
ByzantineValidators: discard.NewGauge(),
|
||||
BlockIntervalSeconds: discard.NewHistogram(),
|
||||
NumTxs: discard.NewGauge(),
|
||||
TotalTxs: discard.NewCounter(),
|
||||
BlockSizeBytes: discard.NewGauge(),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user