Skip to content

Commit

Permalink
update ops recipe link for prometheus-agent alerts (#998)
Browse files Browse the repository at this point in the history
* update ops recipe link for prometheus-agent alerts

* changelog

* update ops recipe name in UT
  • Loading branch information
QuantumEnigmaa authored Jan 11, 2024
1 parent 74a8160 commit 85ad225
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 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

- Update ops recipe link for all prometheus-agent alerts.

## [2.147.0] - 2024-01-09

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
annotations:
description: '{{`Prometheus agent remote write is failing.`}}'
summary: Prometheus agent fails to send samples to remote write endpoint.
opsrecipe: prometheus-agent-remote-write-failed/
opsrecipe: prometheus-agent/
dashboard: promRW001/prometheus-remote-write
# expr: count(absent_over_time(up{instance="prometheus-agent"}[10m]))
expr: |-
Expand All @@ -43,7 +43,7 @@ spec:
annotations:
description: '{{`Prometheus agent remote write is failing.`}}'
summary: Prometheus agent fails to send samples to remote write endpoint.
opsrecipe: prometheus-agent-remote-write-failed/
opsrecipe: prometheus-agent/
dashboard: promRW001/prometheus-remote-write
# expr: count(absent_over_time(up{instance="prometheus-agent"}[10m]))
expr: |-
Expand All @@ -70,7 +70,7 @@ spec:
annotations:
description: '{{`Prometheus agent is missing shards.`}}'
summary: Prometheus agent is missing shards.
opsrecipe: prometheus-agent-missing-shards/
opsrecipe: prometheus-agent/
expr: |-
max_over_time(sum(
count(
Expand Down Expand Up @@ -106,7 +106,7 @@ spec:
annotations:
description: '{{`Prometheus agent is missing shards.`}}'
summary: Prometheus agent is missing shards.
opsrecipe: prometheus-agent-missing-shards/
opsrecipe: prometheus-agent/
expr: |-
max_over_time(sum(
count(
Expand Down
16 changes: 8 additions & 8 deletions test/tests/providers/global/prometheus-agent.rules.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tests:
exp_annotations:
dashboard: "promRW001/prometheus-remote-write"
description: "Prometheus agent remote write is failing."
opsrecipe: "prometheus-agent-remote-write-failed/"
opsrecipe: "prometheus-agent/"
summary: "Prometheus agent fails to send samples to remote write endpoint."
- alertname: PrometheusAgentFailingInhibition
eval_time: 30m
Expand All @@ -43,7 +43,7 @@ tests:
exp_annotations:
dashboard: "promRW001/prometheus-remote-write"
description: "Prometheus agent remote write is failing."
opsrecipe: "prometheus-agent-remote-write-failed/"
opsrecipe: "prometheus-agent/"
summary: "Prometheus agent fails to send samples to remote write endpoint."
- alertname: PrometheusAgentFailing
eval_time: 90m
Expand All @@ -64,7 +64,7 @@ tests:
exp_annotations:
dashboard: "promRW001/prometheus-remote-write"
description: "Prometheus agent remote write is failing."
opsrecipe: "prometheus-agent-remote-write-failed/"
opsrecipe: "prometheus-agent/"
summary: "Prometheus agent fails to send samples to remote write endpoint."
- alertname: PrometheusAgentFailingInhibition
eval_time: 90m
Expand All @@ -85,7 +85,7 @@ tests:
exp_annotations:
dashboard: "promRW001/prometheus-remote-write"
description: "Prometheus agent remote write is failing."
opsrecipe: "prometheus-agent-remote-write-failed/"
opsrecipe: "prometheus-agent/"
summary: "Prometheus agent fails to send samples to remote write endpoint."
- alertname: PrometheusAgentFailing
eval_time: 150m
Expand Down Expand Up @@ -124,7 +124,7 @@ tests:
cancel_if_outside_working_hours: "true"
exp_annotations:
description: "Prometheus agent is missing shards."
opsrecipe: "prometheus-agent-missing-shards/"
opsrecipe: "prometheus-agent/"
summary: "Prometheus agent is missing shards."
- alertname: PrometheusAgentShardsMissingInhibition
eval_time: 100m
Expand All @@ -141,7 +141,7 @@ tests:
cancel_if_outside_working_hours: "true"
exp_annotations:
description: "Prometheus agent is missing shards."
opsrecipe: "prometheus-agent-missing-shards/"
opsrecipe: "prometheus-agent/"
summary: "Prometheus agent is missing shards."
- alertname: PrometheusAgentShardsMissing
eval_time: 125m
Expand All @@ -158,7 +158,7 @@ tests:
cancel_if_outside_working_hours: "true"
exp_annotations:
description: "Prometheus agent is missing shards."
opsrecipe: "prometheus-agent-missing-shards/"
opsrecipe: "prometheus-agent/"
summary: "Prometheus agent is missing shards."
- alertname: PrometheusAgentShardsMissingInhibition
eval_time: 125m
Expand All @@ -175,7 +175,7 @@ tests:
cancel_if_outside_working_hours: "true"
exp_annotations:
description: "Prometheus agent is missing shards."
opsrecipe: "prometheus-agent-missing-shards/"
opsrecipe: "prometheus-agent/"
summary: "Prometheus agent is missing shards."
- alertname: PrometheusAgentShardsMissing
eval_time: 130m
Expand Down

0 comments on commit 85ad225

Please sign in to comment.