mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 13:16:32 +00:00
Merge pull request #11375 from alexpbrown/development
Add period char replacement for prometheus
This commit is contained in:
commit
253a95564e
@ -57,6 +57,7 @@ String FormatMetricName(const char *metric) { // cleanup spaces and uppercases
|
||||
String formatted = metric;
|
||||
formatted.toLowerCase();
|
||||
formatted.replace(" ", "_");
|
||||
formatted.replace(".", "_");
|
||||
return formatted;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user