Skip to content

Commit 1f2b4fa

Browse files
committed
Set histogram quantiles to [50, 90, 99, and 100%]
1 parent 1a051d2 commit 1f2b4fa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/tracing-instrumentation/src/prometheus_metrics.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ impl Prometheus {
4545
opts.histogram_inactivity_timeout.map(Into::into),
4646
)
4747
.add_global_label("cluster_name", opts.cluster_name())
48-
.add_global_label("node_name", opts.node_name());
48+
.add_global_label("node_name", opts.node_name())
49+
.set_quantiles(&[0.5, 0.9, 0.99, 1.0])
50+
.expect("valid quantiles");
51+
4952
let recorder = builder.build_recorder();
5053
let prometheus_handle = recorder.handle();
5154

0 commit comments

Comments
 (0)