From 902ff4a2f60cba8e8489dde40e3c8b8ba30a75b4 Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" Date: Mon, 29 Jul 2019 10:27:55 +0200 Subject: [PATCH] HDDS-1867. Invalid Prometheus metric name from JvmMetrics Closes #1172 --- .../hadoop/hdds/server/PrometheusMetricsSink.java | 7 +++++-- .../hadoop/hdds/server/TestPrometheusMetricsSink.java | 11 +++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/PrometheusMetricsSink.java b/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/PrometheusMetricsSink.java index df25cfc9a3..f23d52844b 100644 --- a/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/PrometheusMetricsSink.java +++ b/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/PrometheusMetricsSink.java @@ -49,6 +49,9 @@ public class PrometheusMetricsSink implements MetricsSink { private static final Pattern SPLIT_PATTERN = Pattern.compile("(?