generated from giantswarm/template-app
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e72664
commit 2f9c07c
Showing
6 changed files
with
266 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
helm/prometheus-rules/templates/platform/atlas/alerting-rules/monitoring-pipeline.rules.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
labels: | ||
{{- include "labels.common" . | nindent 4 }} | ||
name: monitoring-pipeline.rules | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
groups: | ||
- name: monitoring-pipeline | ||
rules: | ||
- alert: MetricForwardingErrors | ||
annotations: | ||
description: '{{`Monitoring agent can''t communicate with Remote Storage API at {{ $labels.url }}.`}}' | ||
opsrecipe: monitoring-pipeline/ | ||
dashboard: promRW001/prometheus-remote-write | ||
expr: |- | ||
rate(prometheus_remote_storage_samples_failed_total[10m]) > 0.1 | ||
or rate(prometheus_remote_storage_samples_total[10m]) == 0 | ||
or rate(prometheus_remote_storage_metadata_retried_total[10m]) > 0 | ||
for: 1h | ||
labels: | ||
area: platform | ||
cancel_if_outside_working_hours: "true" | ||
severity: page | ||
team: atlas | ||
topic: observability | ||
- alert: JobScrapingFailure | ||
annotations: | ||
dashboard: servicemonitors-details/servicemonitors-details | ||
description: '{{`Monitoring agents for cluster {{$labels.installation}}/{{$labels.cluster_id}} has failed to scrape all targets in {{$labels.job}} job.`}}' | ||
summary: Monitoring agent failed to scrape all targets in a job. | ||
opsrecipe: monitoring-job-scraping-failure/ | ||
expr: |- | ||
( | ||
count(up == 0) by (job, installation, cluster_id, provider, pipeline) | ||
/ | ||
count(up) by (job, installation, cluster_id, provider, pipeline) | ||
) >= 1 | ||
for: 1d | ||
labels: | ||
area: platform | ||
severity: notify | ||
team: atlas | ||
topic: observability | ||
cancel_if_outside_working_hours: "true" | ||
- alert: CriticalJobScrapingFailure | ||
annotations: | ||
dashboard: servicemonitors-details/servicemonitors-details | ||
description: '{{`Monitoring agents for cluster {{$labels.installation}}/{{$labels.cluster_id}} has failed to scrape all targets in {{$labels.job}} job.`}}' | ||
summary: Monitoring agent failed to scrape all targets in a job. | ||
opsrecipe: monitoring-job-scraping-failure/ | ||
## We ignore bastion hosts node exporters | ||
expr: |- | ||
( | ||
count( | ||
( | ||
up{job=~".*(apiserver|kube-controller-manager|kube-scheduler|node-exporter|kube-state-metrics).*"} | ||
or | ||
up{job="kubelet", metrics_path="/metrics"} | ||
) == 0 | ||
) by (job, installation, cluster_id, provider, pipeline) | ||
/ | ||
count( | ||
up{job=~".*(apiserver|kube-controller-manager|kube-scheduler|node-exporter|kube-state-metrics).*"} | ||
or | ||
up{job="kubelet", metrics_path="/metrics"} | ||
) by (job, installation, cluster_id, provider, pipeline) | ||
) >= 1 | ||
for: 3d | ||
labels: | ||
area: platform | ||
severity: page | ||
team: atlas | ||
topic: observability | ||
cancel_if_outside_working_hours: "true" | ||
cancel_if_cluster_is_not_running_monitoring_agent: "true" | ||
cancel_if_cluster_status_creating: "true" | ||
cancel_if_cluster_status_deleting: "true" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.