eko / tado-exporter

A Prometheus exporter for tado smart heating solution
MIT License
65 stars 17 forks source link

fix: Use tokio builtin interval insted of Ticket #394

Open stefano-pogliani opened 4 days ago

stefano-pogliani commented 4 days ago

Building on #393, for the first time in two years I've seen the delays mentioned in #239.

While I could not reproduce this on my laptop, it was happening reliably in my home lab. Not entirely sure what is causing it and why replacing Ticker fixes it but it indeed does.

Testing: with EXPORTER_TICKER=60 the temperature metrics are recorded with gaps before the fix but not after. image

I'm sharing it as a separate PR because it is a different issue, in case you care about one and not the other.