mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 21:26:33 +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;
|
String formatted = metric;
|
||||||
formatted.toLowerCase();
|
formatted.toLowerCase();
|
||||||
formatted.replace(" ", "_");
|
formatted.replace(" ", "_");
|
||||||
|
formatted.replace(".", "_");
|
||||||
return formatted;
|
return formatted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user