diff --git a/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/MetricCategory.java b/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/MetricCategory.java index 6f6de531f8..f5b0db30d6 100644 --- a/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/MetricCategory.java +++ b/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/MetricCategory.java @@ -18,5 +18,5 @@ public interface MetricCategory { String getName(); - Optional getAppliationPrefix(); + Optional getApplicationPrefix(); } diff --git a/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/PantheonMetricCategory.java b/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/PantheonMetricCategory.java index a5c06657b9..6b54cd1b7b 100644 --- a/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/PantheonMetricCategory.java +++ b/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/PantheonMetricCategory.java @@ -64,7 +64,7 @@ public enum PantheonMetricCategory implements MetricCategory { } @Override - public Optional getAppliationPrefix() { + public Optional getApplicationPrefix() { return pantheonSpecific ? PANTHEON_PREFIX : Optional.empty(); } } diff --git a/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/StandardMetricCategory.java b/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/StandardMetricCategory.java index 76e8fcdc47..b4c76e6052 100644 --- a/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/StandardMetricCategory.java +++ b/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/StandardMetricCategory.java @@ -30,7 +30,7 @@ public enum StandardMetricCategory implements MetricCategory { } @Override - public Optional getAppliationPrefix() { + public Optional getApplicationPrefix() { return Optional.empty(); } } diff --git a/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/prometheus/PrometheusMetricsSystem.java b/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/prometheus/PrometheusMetricsSystem.java index c8d300fb7e..cc40a1e6dc 100644 --- a/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/prometheus/PrometheusMetricsSystem.java +++ b/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/prometheus/PrometheusMetricsSystem.java @@ -241,7 +241,7 @@ public class PrometheusMetricsSystem implements MetricsSystem { } private String prometheusPrefix(final MetricCategory category) { - return category.getAppliationPrefix().orElse("") + category.getName() + "_"; + return category.getApplicationPrefix().orElse("") + category.getName() + "_"; } CollectorRegistry getRegistry() {