diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f410d20a..2111a1aff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/helm/prometheus-rules/templates/alerting-rules/prometheus-agent.rules.yml b/helm/prometheus-rules/templates/alerting-rules/prometheus-agent.rules.yml index e09501b5e..17eced999 100644 --- a/helm/prometheus-rules/templates/alerting-rules/prometheus-agent.rules.yml +++ b/helm/prometheus-rules/templates/alerting-rules/prometheus-agent.rules.yml @@ -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: |- @@ -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: |- @@ -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( @@ -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( diff --git a/test/tests/providers/global/prometheus-agent.rules.test.yml b/test/tests/providers/global/prometheus-agent.rules.test.yml index 2f276c0d4..437313d5e 100644 --- a/test/tests/providers/global/prometheus-agent.rules.test.yml +++ b/test/tests/providers/global/prometheus-agent.rules.test.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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