You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
I have been breaking my head for past few days on the following:
I have a prometheusRule and AlermanagerConfig CRDs. And promtheus/ thanos installed using kube-prometheus
When I deploy them in K8s, I can see them in the UI
The issue is that only one of them send me email notification, and the other doesn't. Also, even if it does, it doesnt send email consistently.
How can I fix that?
My prometheusRule
apiVersion: monitoring.coreos.com/v1kind: PrometheusRulemetadata:
labels:
release: monitoringname: daniel-custom-rules-prodnamespace: monitoringspec:
groups:
- name: "pod-error-rule"rules:
- alert: PodErrorAlertfor: 3mexpr: count(kube_pod_container_status_terminated_reason{reason='Error'}) by (namespace, pod)labels:
severity: criticalannotations:
summary: Pod has been in error state for more than 10 minutes.message: "pod {{ $labels.pod }} in the {{ $labels.namespace }} namespace has been in error state for more than 10m"
- name: "pod-pending-rule"rules:
- alert: PodPendingFor30mAlertfor: 2mexpr: count(kube_pod_status_phase{phase="Pending"} > 0) by (namespace, pod)labels:
severity: criticalannotations:
summary: Pod has been pending for more than 30 minutes.message: "pod {{ $labels.pod }} in the {{ $labels.namespace }} namespace has been in pending state for more than 30m"
Your Alertmanager configuration states that notifications should be sent every 10 minutes. Is it possible that some of your alerts are firing and then resolving within 10 minutes? This would mean no notification for those alerts, and is intentional.
If not, could you explain with an example of what you expected to happen, and what happened instead?
Hi all,
I have been breaking my head for past few days on the following:
I have a prometheusRule and AlermanagerConfig CRDs. And promtheus/ thanos installed using kube-prometheus

When I deploy them in K8s, I can see them in the UI
The issue is that only one of them send me email notification, and the other doesn't. Also, even if it does, it doesnt send email consistently.
How can I fix that?
My prometheusRule
My alertmanagerConfig
The text was updated successfully, but these errors were encountered: