From 63923175bb631a1abd6704687155e0c43d6f762b Mon Sep 17 00:00:00 2001 From: H3ll3m4 Date: Fri, 24 Jan 2025 13:37:14 +0000 Subject: [PATCH] [LPF-602] Remove invalid prometheus rule (#137) * removing failing rule to check * deploying to dev * removing alert for UAT & prod * removing deployment to dev --- deployments/development/prometheus-rules.tpl | 11 ----------- deployments/prod/prometheus-rules.tpl | 11 ----------- deployments/uat/prometheus-rules.tpl | 11 ----------- 3 files changed, 33 deletions(-) diff --git a/deployments/development/prometheus-rules.tpl b/deployments/development/prometheus-rules.tpl index ce83d96f..a3ba1d6c 100644 --- a/deployments/development/prometheus-rules.tpl +++ b/deployments/development/prometheus-rules.tpl @@ -9,17 +9,6 @@ metadata: name: prometheus-custom-rules-laa-gpfd-api spec: groups: - - name: secretmanager-rules - rules: - - alert: SecretsManagerPutSecretValue - expr: secretsmanager_put_secret_value_sum{exported_job="secretsmanager", secret_id="arn:aws:secretsmanager:eu-west-2:754256621582:secret:live-laa-get-payments-finance-data-dev-d4def64b8869d886-jJRZ1c"} > 0 - for: 1m - labels: - severity: ${ALERT_SEVERITY} - annotations: - message: | - {{ $labels.user_arn }} has updated secrets. - runbook_url: https://dsdmoj.atlassian.net/wiki/spaces/LPF/pages/5297832119/Runbooks - name: kubernetes-rules rules: - alert: KubeQuotaAlmostFull diff --git a/deployments/prod/prometheus-rules.tpl b/deployments/prod/prometheus-rules.tpl index 1052a85b..a3ba1d6c 100644 --- a/deployments/prod/prometheus-rules.tpl +++ b/deployments/prod/prometheus-rules.tpl @@ -9,17 +9,6 @@ metadata: name: prometheus-custom-rules-laa-gpfd-api spec: groups: - - name: secretmanager-rules - rules: - - alert: SecretsManagerPutSecretValue - expr: secretsmanager_put_secret_value_sum{exported_job="secretsmanager", secret_id="arn:aws:secretsmanager:eu-west-2:754256621582:secret:live-laa-get-payments-finance-data-prod-82bbb46d21e0b817-hnN2RT"} > 0 - for: 1m - labels: - severity: ${ALERT_SEVERITY} - annotations: - message: | - {{ $labels.user_arn }} has updated secrets. - runbook_url: https://dsdmoj.atlassian.net/wiki/spaces/LPF/pages/5297832119/Runbooks - name: kubernetes-rules rules: - alert: KubeQuotaAlmostFull diff --git a/deployments/uat/prometheus-rules.tpl b/deployments/uat/prometheus-rules.tpl index faa6a52d..a3ba1d6c 100644 --- a/deployments/uat/prometheus-rules.tpl +++ b/deployments/uat/prometheus-rules.tpl @@ -9,17 +9,6 @@ metadata: name: prometheus-custom-rules-laa-gpfd-api spec: groups: - - name: secretmanager-rules - rules: - - alert: SecretsManagerPutSecretValue - expr: secretsmanager_put_secret_value_sum{exported_job="secretsmanager", secret_id="arn:aws:secretsmanager:eu-west-2:754256621582:secret:live-laa-get-payments-finance-data-uat-12224e107affb6aa-nPlhcC"} > 0 - for: 1m - labels: - severity: ${ALERT_SEVERITY} - annotations: - message: | - {{ $labels.user_arn }} has updated secrets. - runbook_url: https://dsdmoj.atlassian.net/wiki/spaces/LPF/pages/5297832119/Runbooks - name: kubernetes-rules rules: - alert: KubeQuotaAlmostFull