This is an automated email from the ASF dual-hosted git repository.
vgalaxies pushed a commit to branch pd-store
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git
The following commit(s) were added to refs/heads/pd-store by this push:
new c74ec03a2 fix(server): fix the bug which promtheus cant collect hg
metric (#2462)
c74ec03a2 is described below
commit c74ec03a270aff46539f8e08a3b9c320ddc3faf1
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) {