From ceec278b4daa69cd262e93bc8ac061be884d407f Mon Sep 17 00:00:00 2001 From: dellnoantechnp Date: Fri, 15 Mar 2024 18:26:40 +0800 Subject: [PATCH] bugfix: Update PrometheusAlert version 1.2.3 add argocd-dd template sql. --- charts/prometheusalert/Chart.yaml | 2 +- charts/prometheusalert/values.yaml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/charts/prometheusalert/Chart.yaml b/charts/prometheusalert/Chart.yaml index 78d8c95..6ebf9e9 100644 --- a/charts/prometheusalert/Chart.yaml +++ b/charts/prometheusalert/Chart.yaml @@ -18,4 +18,4 @@ maintainers: sources: - https://github.com/feiyu563/PrometheusAlert type: application -version: 1.2.2 \ No newline at end of file +version: 1.2.3 \ No newline at end of file diff --git a/charts/prometheusalert/values.yaml b/charts/prometheusalert/values.yaml index 6fb4686..f93212b 100644 --- a/charts/prometheusalert/values.yaml +++ b/charts/prometheusalert/values.yaml @@ -858,6 +858,22 @@ config: ruleId: {{.RuleId}} dimensions: {{.Dimensions}} **当前值:{{.CurValue}}**', '2021-07-14 06:57:31'); + INSERT INTO prometheus_alert_d_b (id, tpltype, tpluse, tplname, tpl, created) VALUES (47, 'dd', 'Other', 'argocd-dd', '{{ $v := .notification }} + {{ if eq $v.Health "Healthy" }} + ✅ **{{ $v.Title }}** + {{ else if eq $v.Health "Degraded" }} + ⚠️ **{{ $v.Title }}** + {{ else }} + ❗ **{{ $v.Title }}** + {{ end }} + --- + * App: {{ $v.App }} + * Revision: {{ $v.Revision }} + * Sync_status: {{ $v.Sync_status }} + * Health: **{{ $v.Health }}** + * Duration: {{ $v.Duration }} + --- + 🔗*[Application Detail]({{ $v.Link }})*', '2024-03-15 06:57:31'); user_csv: | 2019年4月10日,15888888881,小张,15999999999,备用联系人小陈,15999999998,备用联系人小赵 2019年4月11日,15888888882,小李,15999999999,备用联系人小陈,15999999998,备用联系人小赵