diff --git a/monitoring/prometheus-rules/snapshot-validation-webhook.yaml b/monitoring/prometheus-rules/snapshot-validation-webhook.yaml deleted file mode 100644 index db69dbc..0000000 --- a/monitoring/prometheus-rules/snapshot-validation-webhook.yaml +++ /dev/null @@ -1,55 +0,0 @@ -- name: kubernetes.snapshot-controller.webhook_state - rules: - - alert: D8SnapshotValidationWebhookPodIsNotReady - expr: min by (pod) (kube_pod_status_ready{condition="true", namespace="d8-snapshot-controller", pod=~"snapshot-validation-webhook-.*"}) != 1 - for: 10m - labels: - severity_level: "8" - tier: cluster - annotations: - plk_protocol_version: "1" - plk_markup_format: "markdown" - plk_create_group_if_not_exists__d8_snapshot_validation_webhook_health: "D8SnapshotValidationWebhookHealth,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes" - plk_grouped_by__d8_snapshot_validation_webhook_health: "D8SnapshotValidationWebhookHealth,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes" - summary: Snapshot-validation-webhook Pod is NOT Ready. - description: | - Troubleshooting steps: - - 1. Examine the Deployment's details: - - ```shell - kubectl -n d8-snapshot-controller describe deployment snapshot-validation-webhook - ``` - - 2. Check the Pod's status to determine the cause why it is not running: - - ```shell - kubectl -n d8-snapshot-controller describe pod -l app=snapshot-validation-webhook - ``` - - - alert: D8SnapshotValidationWebhookPodIsNotRunning - expr: absent(kube_pod_status_phase{namespace="d8-snapshot-controller",phase="Running",pod=~"snapshot-validation-webhook-.*"}) - for: 2m - labels: - severity_level: "8" - tier: cluster - annotations: - plk_protocol_version: "1" - plk_markup_format: "markdown" - plk_create_group_if_not_exists__d8_snapshot_validation_webhook_health: "D8SnapshotValidationWebhookHealth,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes" - plk_grouped_by__d8_snapshot_validation_webhook_health: "D8SnapshotValidationWebhookHealth,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes" - summary: Snapshot-validation-webhook Pod is NOT Running. - description: | - Troubleshooting steps: - - 1. Examine the Deployment's details: - - ```shell - kubectl -n d8-snapshot-controller describe deployment snapshot-validation-webhook - ``` - - 2. Check the Pod's status to determine the cause why it is not running: - - ```shell - kubectl -n d8-snapshot-controller describe pod -l app=snapshot-validation-webhook - ```