RabbitMQ alerting rules depend on kube-state-metrics. Refer to the kube-state-metrics documentation to deploy and scrape kube-state-metrics.
If Prometheus and Alertmanager are installed by Prometheus Operator, apply the YAML files in alertmanager, monitors, and rules directories. They contain K8s objects watched by Prometheus Operator configuring Prometheus.
If Prometheus and Alertmanager are not installed by Prometheus Operator, use config-file.yml and rule-file.yml as a starting point for RabbitMQ monitoring and alerting.
rule-file.yml
is an auto-generated file containing the same rules as the rules directory.
For the Alertmanager configuration file, use the same alertmanager.yaml
as provided in alertmanager/slack.yml.