Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop alertmanager to fetch inhibited alerts #961

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

aleskxyz
Copy link
Contributor

Default query for fetching alerts from alertmanager, fetches inhibited alerts also.
By the logic behind the inhibition, there is no need to fetch this alerts.
In this PR I have changed the inhibited query string param to false to filter out inhibited alerts.

@HenriWahl
Copy link
Owner

Sorry for the late reply - as I do not use Alertmanager: what are inhibited alerts?

@aleskxyz
Copy link
Contributor Author

Hi
No problem
Inhibited alerts are alerts that are muted by other alerts. For example if cpu usage more that 80% is warning, and more than 90% is critical, when cpu usage goes above 90% both warning and critical alerts will fire.
In alertmanager you can inhibit warning alert by critical alert, so when you set inhibited=false, you will not get inhibited alerts in output.

@HenriWahl HenriWahl merged commit 0699195 into HenriWahl:master Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants