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 GitHub
parent 3f127f01f1
commit 6861ed5e94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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) {