Repository navigation
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? |
|
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 |
|
The graph you posted in #4904 (reply in thread) shows a constant value but not an increase over time. Also you might need a |
^^ there is an increase() |
|
Finally it worked. After keeping both servicemonitor and prometheusrule in the same app namespace. |





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"All reactions