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
Is your question request related to a specific component?
vmalert | Inhibition rule
Describe the question in detail
We have some inhibition rules that are working as expected, but we are trying to add a new inhibition rule without the "equal" field, and it is not working. We also tested the new rule with the "equal" field like the other rules, but it still did not work.
Below are test alerting rules created for the same:
- alert: Test-service-cron
expr: node_systemd_unit_state{name="cron.service",exported_state="active"} == 0
for: 5m
labels:
severity: very high
category: Exceptions
annotations:
description: "Service has been down for over 5 minutes in - {{$labels.hostname}}"
summary: "RED - {{$labels.hostname}} - CRON Service down"
- alert: Test-service-sshd
expr: node_systemd_unit_state{name="sshd.service",exported_state="active"} == 0
for: 5m
labels:
severity: very high
spc: disabled
category: Exceptions
annotations:
description: "Service sshd has been down for over 5 minutes in - {{$labels.hostname}}"
summary: "RED - {{$labels.hostname}} - SSHD Service down"
To test the new rule, we first stopped the cron service. Once the "Test-service-cron" alert was fired, we stopped the sshd service. However, the "Test-service-sshd" alert also fired, indicating that the inhibition rule is not working as expected. The inhibition rule should suppress the target alert, but it did not. We verified the alert firing status through the "ALERTS" metric.
Questions:
Are there any specific requirements or conditions for inhibition rules to work without the "equal" field?
Could there be any conflicts or precedence issues with the existing inhibition rules that might affect the new rule?
Could there be any version-specific issues or bugs related to inhibition rules that we should be aware of?
Is your question request related to a specific component?
vmalert | Inhibition rule
Describe the question in detail
We have some inhibition rules that are working as expected, but we are trying to add a new inhibition rule without the "equal" field, and it is not working. We also tested the new rule with the "equal" field like the other rules, but it still did not work.
Working Rules:
New rule is added after the above rules without equal field:
Below are test alerting rules created for the same:
To test the new rule, we first stopped the cron service. Once the "Test-service-cron" alert was fired, we stopped the sshd service. However, the "Test-service-sshd" alert also fired, indicating that the inhibition rule is not working as expected. The inhibition rule should suppress the target alert, but it did not. We verified the alert firing status through the "ALERTS" metric.
Questions:
Troubleshooting docs
The text was updated successfully, but these errors were encountered: