Open c4talyst opened 12 months ago
Would it be ok if we have tasmota_status_sns_energy_current1
and tasmota_status_sns_energy_current2
instead of adding tags? In this case metrics/extractor.go
could be easily extended to support the case, otherwise, this needs more code to be updated.
I guess it would work - I'd need to just think how it might impact templated dashboards in Grafana
You'd need to cater for all, instead of just the one. Not sure how prevalent this problem is though with devices with multiple outputs
tasmota_status_sns_energy_current
tasmota_status_sns_energy_current1
tasmota_status_sns_energy_current2
...
tasmota_status_sns_energy_currentetc
Ah, I see. I've thought that it is possible to use wildcards in metric names, but it seems it doesn't work like this. Adding tags would be a good solution
Summary
Using a
Shelly2.5
withTasmota 13.2.0
and not getting some energy stats.Hypothesis
Assuming not working because it's a list of stats in the StatusSNS object; because the Shelly2.5 has 2 outputs.
Issue
Status0 includes this message, note the list of values in
ApparentPower
as example.This is what I'm getting in prometheus
Expected
Perhaps a label for each output (removed other labels for brevity)
Will try check it out if I have time!