Some checks are pending
docker-build-cometbft / vars (push) Waiting to run
docker-build-cometbft / build-images (amd64, ubuntu-24.04) (push) Blocked by required conditions
docker-build-cometbft / build-images (arm64, ubuntu-24.04-arm) (push) Blocked by required conditions
docker-build-cometbft / merge-images (push) Blocked by required conditions
docker-build-e2e-node / vars (push) Waiting to run
docker-build-e2e-node / build-images (amd64, ubuntu-24.04) (push) Blocked by required conditions
docker-build-e2e-node / build-images (arm64, ubuntu-24.04-arm) (push) Blocked by required conditions
docker-build-e2e-node / merge-images (push) Blocked by required conditions
29 lines
982 B
Go
29 lines
982 B
Go
package state
|
|
|
|
import (
|
|
"github.com/go-kit/kit/metrics"
|
|
)
|
|
|
|
const (
|
|
// MetricsSubsystem is a subsystem shared by all metrics exposed by this
|
|
// package.
|
|
MetricsSubsystem = "state"
|
|
)
|
|
|
|
//go:generate go run ../scripts/metricsgen -struct=Metrics
|
|
|
|
// Metrics contains metrics exposed by this package.
|
|
type Metrics struct {
|
|
// Time spent processing FinalizeBlock
|
|
BlockProcessingTime metrics.Histogram `metrics_buckettype:"lin" metrics_bucketsizes:"1, 10, 10"`
|
|
|
|
// ConsensusParamUpdates is the total number of times the application has
|
|
// updated 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
|
|
// updated the validator set since process start.
|
|
//metrics:Number of validator set updates returned by the application since process start.
|
|
ValidatorSetUpdates metrics.Counter
|
|
}
|