Skip to content

Commit

Permalink
rename prometheus-agent inbitions to monitoring agent to be able to t…
Browse files Browse the repository at this point in the history
…ake alloy into account (#1753)
  • Loading branch information
QuentinBisson authored Oct 30, 2024
1 parent 12fb820 commit 4c15b7b
Show file tree
Hide file tree
Showing 26 changed files with 304 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Create new `monitoring-agent` inhibitions based on the `prometheus-agent` inhibitions to be agnostic to the tool used to monitor targets.

## [4.80.0] - 2024-10-21

### Added
Expand Down
12 changes: 12 additions & 0 deletions files/templates/alertmanager/alertmanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,18 @@ inhibit_rules:
- cancel_if_prometheus_agent_down=true
equal: [cluster_id]

- source_matchers:
- cluster_is_not_running_monitoring_agent=true
target_matchers:
- cancel_if_cluster_is_not_running_monitoring_agent=true
equal: [cluster_id]

- source_matchers:
- inhibit_monitoring_agent_down=true
target_matchers:
- cancel_if_monitoring_agent_down=true
equal: [cluster_id]

- source_matchers:
- stack_failed=true
target_matchers:
Expand Down
Loading

0 comments on commit 4c15b7b

Please sign in to comment.