Hi everyone!
We're using Prometheus for logging CPU/memory/disk usage of our servers, and Prometheus (and the metric library APIs) work great.
However, we wanted to store IoT sensor readings in Prometheus too. Things like voltage, temperature, humidity, etc. come in once a second to our HTTP gateway. Prometheus' data model is great, but we've bumped into a few issues. A picture is worth a thousand words:

- we had to use the pushgateway because of prometheus' focus on pulling/scraping, but the pushgateway has no TTL, so it just keeps reporting the same value for all metrics
- that's inaccurate for us, because we wanna know when sensors stop reporting
Some potential solutions/workarounds?
- forking the pushgateway to delete all metrics after a scrape (or wrapping it with another service)
- don't use the pushgateway; use an expiring map like one from the Guava library that expires metrics after the scrape interval, and expose that map as a metrics endpoint
Maybe we're barking up the wrong tree, and Prometheus is the wrong tool for this job?
Thank you for everyone's time, and any feedback is greatly appreciated. :)