fix(server): fix the bug which promtheus cant collect hg metric (#2462)

This commit is contained in:
SunnyBoy-WYH 2024-03-03 13:05:10 +08:00 committed by VGalaxies
parent 6565a22137
commit c74ec03a27
1 changed files with 1 additions and 1 deletions

View File

@ -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) {