add prometheus metrics for temperaturesensors

This commit is contained in:
MichaelDvP
2026-02-16 12:05:45 +01:00
parent 421da246ed
commit ced7051ce7
3 changed files with 27 additions and 0 deletions

View File

@@ -96,6 +96,8 @@ class TemperatureSensor {
bool updated_values();
bool get_value_info(JsonObject output, const char * cmd, const int8_t id = -1);
std::string get_metrics_prometheus();
// return back reference to the sensor list, used by other classes
std::vector<Sensor, AllocatorPSRAM<Sensor>> sensors() const {
return sensors_;