I am using Prometheus Alertmanager to monitor dozens of hosts and hundreds of containers on these hosts. I need to receive notifications when any container goes down. I understand from the documentation that it’s possible to configure a rule for each container. However, this approach seems impractical given the large number of containers.
Could anyone guide me on how to efficiently configure such a rule? Any help would be greatly appreciated. Thank you.
I attempted to set up individual rules for each container as suggested in the Alertmanager documentation. However, given the large number of containers, this approach proved to be highly inefficient and difficult to manage.