Skip to content

Commit

Permalink
Inhibit prometheus-agent alerts when a cluster has no worker nodes (#…
Browse files Browse the repository at this point in the history
…1395)

* Inhibit prometheas-agent alerts when a cluster has no worker nodes

---------

Co-authored-by: Herve Nicol <12008875+hervenicol@users.noreply.github.com>
  • Loading branch information
hervenicol and hervenicol authored Oct 19, 2024
1 parent 948e174 commit ebd1682
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Modify `KyvernoWebhookHasNoAvailableReplicas` to check specifically for Kyverno resource webhook.
- Inhibit prometheas-agent alerts when a cluster has no worker nodes (AWS vintage only for now)

## [4.19.0] - 2024-10-15

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
## Same as PrometheusAgentFailing, but triggers inhibition earlier and does not page.
- alert: PrometheusAgentFailingInhibition
annotations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ tests:
team: atlas
topic: observability
inhibit_prometheus_agent_down: "true"
cancel_if_cluster_has_no_workers: "true"
cancel_if_cluster_is_not_running_prometheus_agent: "true"
cancel_if_cluster_status_creating: "true"
cancel_if_cluster_status_deleting: "true"
Expand Down Expand Up @@ -78,6 +79,7 @@ tests:
topic: observability
inhibit_prometheus_agent_down: "true"
installation: myinstall
cancel_if_cluster_has_no_workers: "true"
cancel_if_cluster_is_not_running_prometheus_agent: "true"
cancel_if_cluster_status_creating: "true"
cancel_if_cluster_status_deleting: "true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ tests:
topic: observability
inhibit_prometheus_agent_down: "true"
instance: prometheus-agent
cancel_if_cluster_has_no_workers: "true"
cancel_if_cluster_is_not_running_prometheus_agent: "true"
cancel_if_cluster_status_creating: "true"
cancel_if_cluster_status_deleting: "true"
Expand Down Expand Up @@ -61,6 +62,7 @@ tests:
inhibit_prometheus_agent_down: "true"
installation: myinstall
instance: prometheus-agent
cancel_if_cluster_has_no_workers: "true"
cancel_if_cluster_is_not_running_prometheus_agent: "true"
cancel_if_cluster_status_creating: "true"
cancel_if_cluster_status_deleting: "true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ tests:
topic: observability
inhibit_prometheus_agent_down: "true"
instance: prometheus-agent
cancel_if_cluster_has_no_workers: "true"
cancel_if_cluster_is_not_running_prometheus_agent: "true"
cancel_if_cluster_status_creating: "true"
cancel_if_cluster_status_deleting: "true"
Expand Down Expand Up @@ -61,6 +62,7 @@ tests:
inhibit_prometheus_agent_down: "true"
installation: myinstall
instance: prometheus-agent
cancel_if_cluster_has_no_workers: "true"
cancel_if_cluster_is_not_running_prometheus_agent: "true"
cancel_if_cluster_status_creating: "true"
cancel_if_cluster_status_deleting: "true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ tests:
topic: observability
inhibit_prometheus_agent_down: "true"
instance: prometheus-agent
cancel_if_cluster_has_no_workers: "true"
cancel_if_cluster_is_not_running_prometheus_agent: "true"
cancel_if_cluster_status_creating: "true"
cancel_if_cluster_status_deleting: "true"
Expand Down Expand Up @@ -61,6 +62,7 @@ tests:
inhibit_prometheus_agent_down: "true"
installation: myinstall
instance: prometheus-agent
cancel_if_cluster_has_no_workers: "true"
cancel_if_cluster_is_not_running_prometheus_agent: "true"
cancel_if_cluster_status_creating: "true"
cancel_if_cluster_status_deleting: "true"
Expand Down

0 comments on commit ebd1682

Please sign in to comment.