Skip to content

Commit e82d8d7

Browse files
authored
internal(monitoring): remove obsolete alerts (#645)
Signed-off-by: v.oleynikov <vasily.oleynikov@flant.com>
1 parent f281fa8 commit e82d8d7

7 files changed

Lines changed: 20 additions & 38 deletions

File tree

monitoring/prometheus-rules/expiring-certs.yaml renamed to monitoring/prometheus-rules/expiring-certs.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if not .Values.sdsReplicatedVolume.internal.newControlPlane }}
12
- name: kubernetes.certs.expiring_soon_check
23
rules:
34
- alert: D8LinstorCertificateExpiringIn30d
@@ -20,3 +21,4 @@
2021
`kubectl get secrets -n d8-sds-replicated-volume -l storage.deckhouse.io/sds-replicated-volume-cert-expire-in-30d=true`
2122

2223
Check "FAQ: How to manually trigger the certificate renewal process?" in documentation for the manual certificate renewal guide.
24+
{{- end }}

monitoring/prometheus-rules/linstor-affinity-controller.yaml renamed to monitoring/prometheus-rules/linstor-affinity-controller.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if not .Values.sdsReplicatedVolume.internal.newControlPlane }}
12
- name: kubernetes.linstor.affinity-controller_state
23
rules:
34
- alert: D8LinstorAffinityControllerPodIsNotReady
@@ -34,3 +35,4 @@
3435
The recommended course of action:
3536
1. Retrieve details of the Deployment: `kubectl -n d8-sds-replicated-volume describe deploy linstor-affinity-controller`
3637
2. View the status of the Pod and try to figure out why it is not running: `kubectl -n d8-sds-replicated-volume describe pod -l app=linstor-affinity-controller`
38+
{{- end }}

monitoring/prometheus-rules/linstor-backup.yaml renamed to monitoring/prometheus-rules/linstor-backup.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if not .Values.sdsReplicatedVolume.internal.newControlPlane }}
12
- name: kubernetes.linstor.obsolete_backups
23
rules:
34
- alert: D8ObsoleteLinstorBackupPresents
@@ -19,3 +20,4 @@
1920

2021
You should remove it with command:
2122
`kubectl -n d8-sds-replicated-volume get secrets | grep -E "linstor-[0-9]+-backup" | awk '{ print "kubectl -n d8-sds-replicated-volume delete secret "$1 }' | bash`
23+
{{- end }}

monitoring/prometheus-rules/linstor-controller.yaml renamed to monitoring/prometheus-rules/linstor-controller.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if not .Values.sdsReplicatedVolume.internal.newControlPlane }}
12
- name: kubernetes.linstor.controller_state
23
rules:
34
- alert: D8LinstorControllerGrowingErrorReports
@@ -105,3 +106,4 @@
105106
description: |
106107
The recommended course of action:
107108
1. set correct port range in module config: `kubectl edit mc sds-replicated-volume`
109+
{{- end }}

monitoring/prometheus-rules/linstor-node.yaml renamed to monitoring/prometheus-rules/linstor-node.tpl

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if not .Values.sdsReplicatedVolume.internal.newControlPlane }}
12
- name: kubernetes.linstor.node_state
23
rules:
34
- alert: D8LinstorNodeIsNotOnline
@@ -12,11 +13,11 @@
1213
plk_grouped_by__d8_linstor_node_health: "D8LinstorNodeHealth,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
1314
summary: LINSTOR node is not ONLINE
1415
description: |
15-
LINSTOR node {{ $labels.exported_node }} is not ONLINE
16+
LINSTOR node {{ "{{" }} $labels.exported_node {{ "}}" }} is not ONLINE
1617

1718
The recommended course of action:
18-
1. Check the LINSTOR node status: `kubectl exec -n d8-sds-replicated-volume deploy/linstor-controller -- linstor node list -n {{ $labels.exported_node }}`
19-
2. Check the Pod status: `kubectl -n d8-sds-replicated-volume get pod --field-selector=spec.nodeName={{ $labels.exported_node }} -l app=linstor-node`
19+
1. Check the LINSTOR node status: `kubectl exec -n d8-sds-replicated-volume deploy/linstor-controller -- linstor node list -n {{ "{{" }} $labels.exported_node {{ "}}" }}`
20+
2. Check the Pod status: `kubectl -n d8-sds-replicated-volume get pod --field-selector=spec.nodeName={{ "{{" }} $labels.exported_node {{ "}}" }} -l app=linstor-node`
2021

2122
- alert: D8LinstorSatelliteGrowingErrorReports
2223
expr: sum by (hostname) (increase(linstor_error_reports_count{module="SATELLITE"}[5m])) >= 20
@@ -31,11 +32,11 @@
3132
plk_grouped_by__d8_linstor_node_health: "D8LinstorNodeHealth,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
3233
summary: LINSTOR satellite has errors
3334
description: |
34-
LINSTOR satellite {{ $labels.hostname }} has continuously growing amount of error reports
35+
LINSTOR satellite {{ "{{" }} $labels.hostname {{ "}}" }} has continuously growing amount of error reports
3536

3637
The recommended course of action:
37-
1. Check the Pod logs: `kubectl -n d8-sds-replicated-volume logs $(kubectl -n d8-sds-replicated-volume get pod --field-selector=spec.nodeName={{ $labels.node }} -l app=linstor-node -o name) -c linstor-satellite`
38-
2. Check the LINSTOR error reports: `kubectl exec -n d8-sds-replicated-volume deploy/linstor-controller -- linstor err list -n {{ $labels.hostname }}`
38+
1. Check the Pod logs: `kubectl -n d8-sds-replicated-volume logs $(kubectl -n d8-sds-replicated-volume get pod --field-selector=spec.nodeName={{ "{{" }} $labels.node {{ "}}" }} -l app=linstor-node -o name) -c linstor-satellite`
39+
2. Check the LINSTOR error reports: `kubectl exec -n d8-sds-replicated-volume deploy/linstor-controller -- linstor err list -n {{ "{{" }} $labels.hostname {{ "}}" }}`
3940

4041
- alert: D8LinstorNodePodIsNotReady
4142
expr: min by (pod) (avg by(node,pod,namespace)(kube_pod_info{}) * on(pod, namespace) group_right(node) kube_pod_status_ready{condition="true", namespace="d8-sds-replicated-volume", pod=~"linstor-node-.*"}) != 1
@@ -53,7 +54,7 @@
5354
description: |
5455
The recommended course of action:
5556
1. Retrieve details of the Deployment: `kubectl -n d8-sds-replicated-volume describe daemonset linstor-node`
56-
2. View the status of the Pod and try to figure out why it is not running: `kubectl -n d8-sds-replicated-volume describe pod --field-selector=spec.nodeName={{ $labels.node }} -l app=linstor-node`
57+
2. View the status of the Pod and try to figure out why it is not running: `kubectl -n d8-sds-replicated-volume describe pod --field-selector=spec.nodeName={{ "{{" }} $labels.node {{ "}}" }} -l app=linstor-node`
5758

5859
- alert: D8LinstorNodePodIsNotRunning
5960
expr: absent(avg by(node,pod,namespace)(kube_pod_info{}) * on(pod, namespace) group_right(node) kube_pod_status_phase{namespace="d8-sds-replicated-volume",phase="Running",pod=~"linstor-node-.*"})
@@ -70,4 +71,5 @@
7071
description: |
7172
The recommended course of action:
7273
1. Retrieve details of the DaemonSet: `kubectl -n d8-sds-replicated-volume describe daemonset linstor-node`
73-
2. View the status of the Pod and try to figure out why it is not running: `kubectl -n d8-sds-replicated-volume describe pod --field-selector=spec.nodeName={{ $labels.node }} -l app=linstor-node`
74+
2. View the status of the Pod and try to figure out why it is not running: `kubectl -n d8-sds-replicated-volume describe pod --field-selector=spec.nodeName={{ "{{" }} $labels.node {{ "}}" }} -l app=linstor-node`
75+
{{- end }}

monitoring/prometheus-rules/linstor-scheduler.yaml renamed to monitoring/prometheus-rules/linstor-scheduler.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if not .Values.sdsReplicatedVolume.internal.newControlPlane }}
12
- name: kubernetes.linstor.scheduler_state
23
rules:
34
- alert: D8LinstorSchedulerPodIsNotReady
@@ -34,3 +35,4 @@
3435
The recommended course of action:
3536
1. Retrieve details of the Deployment: `kubectl -n d8-sds-replicated-volume describe deploy linstor-scheduler`
3637
2. View the status of the Pod and try to figure out why it is not running: `kubectl -n d8-sds-replicated-volume describe pod -l app=linstor-scheduler`
38+
{{- end }}

monitoring/prometheus-rules/memory-leak.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)