sfudeus / homematic_exporter

Prometheus exporter for homematic ccu3
Apache License 2.0
23 stars 17 forks source link

Delete old devices #30

Open runningman84 opened 2 years ago

runningman84 commented 2 years ago

One of my smoke sensors is broken, therefore I replaced it with another device. In the exporter it still shows the device as reporting smoke. In the CCU Gui the device is not listed anymore because I removed it.

sfudeus commented 2 years ago

Thanks for the feedback, and it is true. Currently there is no mechanism during runtime to remove previously registered metrics. I'll keep this issue open for the time being to eventually fix this, the obvious workaround is the restart of the exporter.

flammermann commented 3 days ago

This would be solved by this commit https://github.com/sfudeus/homematic_exporter/pull/59/commits/e434a20e74bde74204a123ed2105f7db6289fd56, which is part of this PR https://github.com/sfudeus/homematic_exporter/pull/59.

flammermann commented 2 days ago

Correction: Better solution presented in https://github.com/sfudeus/homematic_exporter/pull/59/commits/1a9307af59000b1cdf2b4c3fd57a2b837e87804c, still part of https://github.com/sfudeus/homematic_exporter/pull/59.