Skip to content

Commit be07075

Browse files
committed
fix prometheus name check
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent 88f9b8b commit be07075

File tree

1 file changed

+1
-1
lines changed
  • prometheus-metrics-model/src/main/java/io/prometheus/metrics/model/snapshots

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public MetricMetadata(String name, String help, Unit unit) {
5555
this.name = name;
5656
this.help = help;
5757
this.unit = unit;
58-
this.prometheusName = PrometheusNaming.prometheusName(name);
5958
validate();
59+
this.prometheusName = PrometheusNaming.prometheusName(name);
6060
}
6161

6262
/**

0 commit comments

Comments
 (0)