diff --git a/metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/PrometheusMetricsSystem.java b/metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/PrometheusMetricsSystem.java index bab2c5c7d3f..11942775a63 100644 --- a/metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/PrometheusMetricsSystem.java +++ b/metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/PrometheusMetricsSystem.java @@ -310,7 +310,7 @@ public String convertToPrometheusCounterName(final MetricCategory category, fina if (name.endsWith("_total")) { totalSuffixedCounters.add(name); } - return convertFromPrometheusName(category, name); + return convertToPrometheusName(category, name); } private String convertFromPrometheusName(final MetricCategory category, final String metricName) {