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

Inhibit prometheus-agent alerts when a cluster has no worker nodes #1395

Merged
merged 3 commits into from
Oct 19, 2024

Conversation

hervenicol
Copy link
Contributor

Towards https://github.com/giantswarm/giantswarm/issues/31390

This PR prevents prometheus-agent alerts to fire when the WC has no worker nodes.
But the inhibition alert only works for AWS vintage for now.

Checklist

@hervenicol hervenicol self-assigned this Oct 15, 2024
@hervenicol hervenicol requested a review from a team as a code owner October 15, 2024 13:31
@@ -51,6 +51,7 @@ spec:
cancel_if_cluster_is_not_running_prometheus_agent: "true"
cancel_if_cluster_status_creating: "true"
cancel_if_cluster_status_deleting: "true"
cancel_if_cluster_has_no_workers: "true"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This inhibition exists in the alertmanager config?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it does. Do you have reasons to doubt it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not at all :) I know we have a lot of "inhibitions" configured that are not used there so I was wondering :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hervenicol hervenicol changed the title Inhibit prometheas-agent alerts when a cluster has no worker nodes Inhibit prometheus-agent alerts when a cluster has no worker nodes Oct 17, 2024
@hervenicol hervenicol force-pushed the aws-inhibit-noworker-clusters branch from ea3bdcc to 584ccfe Compare October 18, 2024 15:27
@hervenicol hervenicol merged commit ebd1682 into main Oct 19, 2024
7 checks passed
@hervenicol hervenicol deleted the aws-inhibit-noworker-clusters branch October 19, 2024 07:46
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.

2 participants