aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-10-02 16:23:31 +0200
committerAlex Auvolat <alex@adnab.me>2023-10-02 16:23:31 +0200
commite943fd37720f9cd0f5f2eb2e64fcdcd27d5c6a22 (patch)
tree8a238d175419a407a4c8b12749860c435d9ce9dd
parentec247ec4c67afb0424bbb8e6b94749f52d804ed9 (diff)
downloadtricot-e943fd37720f9cd0f5f2eb2e64fcdcd27d5c6a22.tar.gz
tricot-e943fd37720f9cd0f5f2eb2e64fcdcd27d5c6a22.zip
prometheus: disable counter suffixes
-rw-r--r--src/metrics.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/metrics.rs b/src/metrics.rs
index d2e29c7..d9ad372 100644
--- a/src/metrics.rs
+++ b/src/metrics.rs
@@ -25,6 +25,7 @@ impl MetricsServer {
let exporter = opentelemetry_prometheus::exporter()
.with_registry(registry.clone())
.with_aggregation_selector(AggregationSelector)
+ .without_counter_suffixes()
.build()
.expect("build prometheus registry");
let mp = metrics::MeterProvider::builder()