From efd8e2bffcdbb7b7a1e80694b36f221988fec39e Mon Sep 17 00:00:00 2001 From: Ken Rowland Date: Mon, 9 Oct 2023 17:12:18 -0400 Subject: [PATCH] HPCC-30446 esp components failing to start in cloud due to invalid metrics Added code to metrics manager to remove illegal characters from metric name Signed-Off-By: Kenneth Rowland kenneth.rowland@lexisnexisrisk.com --- system/jlib/jmetrics.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/system/jlib/jmetrics.cpp b/system/jlib/jmetrics.cpp index 40fc960bf82..04c4428156f 100644 --- a/system/jlib/jmetrics.cpp +++ b/system/jlib/jmetrics.cpp @@ -153,6 +153,13 @@ bool MetricsManager::addMetric(const std::shared_ptr &pMetric) bool rc = false; std::string name = pMetric->queryName(); + // Remove unwanted characters from input name + char removeChars[] = "_-* "; + for (unsigned i=0; i