Skip to content

Commit 83b5c3f

Browse files
committed
docs: link sanitizeMetricName to normalizeMetricName
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
1 parent bdb0653 commit 83b5c3f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

prometheus-metrics-model/src/main/java/io/prometheus/metrics/model/snapshots/PrometheusNaming.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ public static String prometheusName(String name) {
180180
* bridge) which relied on {@code sanitizeMetricName} to strip these suffixes before passing names
181181
* to the snapshot builders.
182182
*
183+
* <p>If you want permissive normalization that keeps reserved suffixes intact, use {@link
184+
* #normalizeMetricName(String)} instead.
185+
*
183186
* @throws IllegalArgumentException if the input is empty
184187
*/
185188
public static String sanitizeMetricName(String metricName) {

0 commit comments

Comments
 (0)