Skip to content

Commit fccbe70

Browse files
authored
Merge branch 'main' into ok_variants_within_error_enums
2 parents b88cff3 + 079df7c commit fccbe70

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

autometrics-macros/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,9 @@ fn latency_query(bucket_name: &str, label_key: &str, label_value: &str) -> Strin
319319
"sum by (le, function, module, commit, version) (rate({bucket_name}{{{label_key}=\"{label_value}\"}}[5m]) {ADD_BUILD_INFO_LABELS})"
320320
);
321321
format!(
322-
"histogram_quantile(0.99, {latency}) or
323-
histogram_quantile(0.95, {latency})"
322+
"label_replace(histogram_quantile(0.99, {latency}), \"percentile_latency\", \"99\", \"\", \"\")
323+
or
324+
label_replace(histogram_quantile(0.95, {latency}), \"percentile_latency\", \"95\", \"\", \"\")"
324325
)
325326
}
326327

0 commit comments

Comments
 (0)