I have Prometheus set up to pull data.
Based on my knowledge and investigation so far, this is how I see Prometheus working. I’m not sure if I’m correct:
I noticed that the Prometheus configuration has a scrape interval and it doesn’t work by a “subscription”, where if the data changes on HA side, it automatically updates. It only pulls the data on that particular scrape and stores its status as it was when it was scraped.
This works fine for things like temperatures, or other data that changes very infrequently.
However, I believe that Prometheus is missing stuff like when a lock opens and closes in between scrape intervals, it won’t appear on Prometheus side.
Also, how would I pull data for binary buttons, such as if a button was pushed?
The scrape interval was 30 seconds, but I temporarily changed it to 2 seconds to try to get some of this short-lived data.
Eventually I also want to pull pulse data from water meter and store it long term.
Is this kind of data collection and home assistant just not possible?
If anyone knows better, please let me know.