metrics: fixup after cherry-pick (#9195)

* fixup after cherry-pick

* cherry-pick fixups
This commit is contained in:
William Banfield
2022-08-08 15:55:01 -04:00
committed by GitHub
parent 10e1ac8fea
commit 69845bb44e
8 changed files with 35 additions and 35 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ func PrometheusMetrics(namespace string, labelsAndValues ...string) *Metrics {
Name: "block_processing_time",
Help: "Time between BeginBlock and EndBlock in ms.",
Buckets: []float64{1, 10, 10},
Buckets: stdprometheus.LinearBuckets(1, 10, 10),
}, labels).With(labelsAndValues...),
}
}
+1 -1
View File
@@ -15,5 +15,5 @@ const (
// Metrics contains metrics exposed by this package.
type Metrics struct {
// Time between BeginBlock and EndBlock in ms.
BlockProcessingTime metrics.Histogram `metrics_buckettype:"linear" metrics_bucketsizes:"1, 10, 10"`
BlockProcessingTime metrics.Histogram `metrics_buckettype:"lin" metrics_bucketsizes:"1, 10, 10"`
}