From 76f06c25a895aeb123d0062d44c9629482c4a370 Mon Sep 17 00:00:00 2001 From: Alessio Onori Date: Tue, 19 Nov 2024 10:44:40 +0100 Subject: [PATCH] alertrule changed gonfigurable --- charts/polkadot-watcher/Chart.yaml | 4 ++-- charts/polkadot-watcher/templates/alertrules.yaml | 2 ++ charts/polkadot-watcher/values.yaml | 1 + package.json | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/charts/polkadot-watcher/Chart.yaml b/charts/polkadot-watcher/Chart.yaml index 9b35bf6..6e18400 100644 --- a/charts/polkadot-watcher/Chart.yaml +++ b/charts/polkadot-watcher/Chart.yaml @@ -1,5 +1,5 @@ description: Polkadot Watcher name: polkadot-watcher -version: v4.4.6 -appVersion: v4.4.6 +version: v4.4.7 +appVersion: v4.4.7 apiVersion: v2 diff --git a/charts/polkadot-watcher/templates/alertrules.yaml b/charts/polkadot-watcher/templates/alertrules.yaml index 3cee696..c36aed4 100644 --- a/charts/polkadot-watcher/templates/alertrules.yaml +++ b/charts/polkadot-watcher/templates/alertrules.yaml @@ -53,6 +53,7 @@ spec: labels: severity: critical origin: {{ .Values.prometheusRules.origin }} + {{ if ne .Values.prometheusRules.changed false }} - alert: ValidatorRewardDestinationChanged annotations: message: 'Target {{`{{ $labels.name }}`}} may have changed his reward destination recently, please double check. This message is going to RESOLVE by itself soon.' @@ -69,6 +70,7 @@ spec: labels: severity: warning origin: {{ .Values.prometheusRules.origin }} + {{ end }} - alert: ValidatorCommissionRateUnexpected annotations: message: 'Target {{`{{ $labels.name }}`}} has an unexpected commission rate, please double check.' diff --git a/charts/polkadot-watcher/values.yaml b/charts/polkadot-watcher/values.yaml index f91adfa..1898c93 100644 --- a/charts/polkadot-watcher/values.yaml +++ b/charts/polkadot-watcher/values.yaml @@ -29,6 +29,7 @@ prometheusRules: app: w3f origin: cluster producerStall: true + changed: true resources: requests: diff --git a/package.json b/package.json index 9159262..5b92eda 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "polkadot-watcher", - "version": "4.4.6", + "version": "4.4.7", "description": "Monitor events on Polkadot networks", "repository": "git@github.com:w3f/polkadot-watcher.git", "author": "W3F Infrastructure Team ",