I have a few clients that push their metrics to Pushgateway, which then gets scraped by Prometheus. Finally I use Grafana for dashboards - not a too exotic setup I guess.
What puzzles me is when one of the clients stops working and no longer pushes it's metrics, the Pushgateway will further provide the last values it received to Prometheus, and Grafana will happily display a horizontal line.
However I'd prefer receiving an alarm if the metrics are too old. How to accomplish that?