We have a kubernetes system that among other activities handling thousands of incoming inputs from sensors. Some sensors can stop reporting from time to time, so we can have an alert about the event of disconnection. When sensor is back we would like also to get an event for this as well. So, between these events (connection and disconnection) the status of a specific sensor can be OK or NOK and we would like to see the status of currently disconnected sensors without going over all the issued events and finding out each time.
Can we do that with Prometheus Alertmanager? If yes, can you please refer to the possible ways to accomplish this? If no, what will be your default way to handle this requirement?
This has to be managed at Prometheus Server side by adding self-monitoring alerts, and more precisely the PrometheusTargetMissing alert for your case
Reference: https://awesome-prometheus-alerts.grep.to/rules.html#rule-prometheus-self-monitoring-2