github.com/aakash4dev/cometbft@v0.38.2/state/metrics.go (about) 1 package state 2 3 import ( 4 "github.com/go-kit/kit/metrics" 5 ) 6 7 const ( 8 // MetricsSubsystem is a subsystem shared by all metrics exposed by this 9 // package. 10 MetricsSubsystem = "state" 11 ) 12 13 //go:generate go run ../scripts/metricsgen -struct=Metrics 14 15 // Metrics contains metrics exposed by this package. 16 type Metrics struct { 17 // Time spent processing FinalizeBlock 18 BlockProcessingTime metrics.Histogram `metrics_buckettype:"lin" metrics_bucketsizes:"1, 10, 10"` 19 20 // ConsensusParamUpdates is the total number of times the application has 21 // updated the consensus params since process start. 22 //metrics:Number of consensus parameter updates returned by the application since process start. 23 ConsensusParamUpdates metrics.Counter 24 25 // ValidatorSetUpdates is the total number of times the application has 26 // updated the validator set since process start. 27 //metrics:Number of validator set updates returned by the application since process start. 28 ValidatorSetUpdates metrics.Counter 29 }