Update metrics.py
Docker Push / build (push) Successful in 40s
Details
Docker Push / build (push) Successful in 40s
Details
This commit is contained in:
parent
70e44a432c
commit
9ac6a3f7da
|
@ -22,7 +22,7 @@ class TasmotaCollector(object):
|
|||
response = self.fetch()
|
||||
|
||||
for key in response:
|
||||
metric_name = self.device_name + "_" + key.lower().replace(" ", "_")
|
||||
metric_name = "tasmota_" + key.lower().replace(" ", "_")
|
||||
metric = response[key].split()[0]
|
||||
unit = None
|
||||
if len(response[key].split()) > 1:
|
||||
|
|
Loading…
Reference in New Issue