Alert rule is showing that the expression is satisfied. However Alert is not firing #4904
Replies: 6 comments 11 replies
-
|
Maybe the alert is silenced, inhibited or muted? Which web-ui is that? |
Beta Was this translation helpful? Give feedback.
-
|
Hm hard to tell like this. Can you dump the alerts from the api endpoint and check if you see something there? If it's firing in prometheus but not aletmanager, maybe the prometheus can't talk to alertmanager |
Beta Was this translation helpful? Give feedback.
-
|
The graph you posted in #4904 (reply in thread) shows a constant value but not an increase over time. Also you might need a |
Beta Was this translation helpful? Give feedback.
-
^^ there is an increase() |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Finally it worked. After keeping both servicemonitor and prometheusrule in the same app namespace. |
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
-
Alert rule is showing that the expression is satisfied. However Alert is not firing.

Here is the alert rule:
apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: natgw-alert-rules namespace: {{ .Values.namespace }} labels: prometheus: k8s role: alert-rules spec: groups: - name: natgw-alert-rules rules: - alert: NatGWReservedFIPFailures expr: | increase( nat_gw_errors_total{error_type="nat_reserved_fip_failed"}[5m] ) > 0 #for: 1m labels: severity: medium annotations: summary: "NAT GW reserved FIP failure" description: "NAT GW reserved FIP failures are occurring in the last 5 minutes"Beta Was this translation helpful? Give feedback.
All reactions