This is an automated email from the ASF dual-hosted git repository.

jermy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git


The following commit(s) were added to refs/heads/master by this push:
     new 6861ed5e9 fix(server): fix the bug which promtheus cant collect hg 
metric (#2462)
6861ed5e9 is described below

commit 6861ed5e943ab9788f192eb3635e14cfb1d66ead
Author: SunnyBoy-WYH <[email protected]>
AuthorDate: Sun Mar 3 13:05:10 2024 +0800

    fix(server): fix the bug which promtheus cant collect hg metric (#2462)
---
 .../src/main/java/org/apache/hugegraph/metrics/MetricsUtil.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/metrics/MetricsUtil.java
 
b/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/metrics/MetricsUtil.java
index 47f28b44f..3721cb1e1 100644
--- 
a/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/metrics/MetricsUtil.java
+++ 
b/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/metrics/MetricsUtil.java
@@ -93,7 +93,7 @@ public class MetricsUtil {
     }
 
     public static String replaceDotDashInKey(String orgKey) {
-        return orgKey.replace(".", "_").replace("-", "_");
+        return orgKey.replace(".", "_").replace("-", "_").replace("/", 
"_").replace("$", "_");
     }
 
     public static String replaceSlashInKey(String orgKey) {

Reply via email to