I have setup a Cronjob for a container that exits with a non-zero code. I have a PrometheusRule and AlertManagerConfig setup against this CronJob but the alert is not firing as expected. The alerting is based on this example.
What did you expect to see?
I expected to see alerts being delivered to the specified email. This functionality is already working as I have another alert setup
already
Environment
Kubernetes
Versions : The AlertManager and Prometheus instances are both installed via the Bitnami kube-prometheus stack.
Prometheus : v2.44.0
AlertManager; v0.25.0
Helm Chart version : helm template prometheus bitnami/kube-prometheus --namespace monitoring --version 8.14.0 -f prometheus-values.yaml > ./output/values.yaml\
I have setup a Cronjob for a container that exits with a non-zero code. I have a PrometheusRule and AlertManagerConfig setup against this CronJob but the alert is not firing as expected. The alerting is based on this example.
This is the CronJob definition :
And this is the PrometheusRule:
And the associated AlertManagerConfig:
What did you expect to see? I expected to see alerts being delivered to the specified email. This functionality is already working as I have another alert setup already
Environment Kubernetes
Versions : The AlertManager and Prometheus instances are both installed via the Bitnami kube-prometheus stack. Prometheus : v2.44.0 AlertManager; v0.25.0 Helm Chart version :
helm template prometheus bitnami/kube-prometheus --namespace monitoring --version 8.14.0 -f prometheus-values.yaml > ./output/values.yaml
\Alertmanager configuration file:
name: "null"
name: monitoring/cronjob-failure-receiver/cron-email email_configs:
Logs: Prometheus logs :
Alert Manager logs :
In the Prometheus UI the alert appears as inactive :
What am I missing ?