Merge pull request #11375 from alexpbrown/development

Add period char replacement for prometheus
This commit is contained in:
Theo Arends 2021-03-18 09:02:47 +01:00 committed by GitHub
commit 253a95564e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,7 @@ String FormatMetricName(const char *metric) { // cleanup spaces and uppercases
String formatted = metric;
formatted.toLowerCase();
formatted.replace(" ", "_");
formatted.replace(".", "_");
return formatted;
}