From 34842b9fdd7187d5886c9fddd460040215634732 Mon Sep 17 00:00:00 2001 From: j_r0dd <285797+jr0dd@users.noreply.github.com> Date: Sun, 12 Sep 2021 19:48:38 -0400 Subject: [PATCH] [blocky] add template to rules (#1188) --- charts/stable/blocky/Chart.yaml | 2 +- charts/stable/blocky/README.md | 2 +- charts/stable/blocky/templates/prometheusrules.yaml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/stable/blocky/Chart.yaml b/charts/stable/blocky/Chart.yaml index d412b969..cacf2cf5 100644 --- a/charts/stable/blocky/Chart.yaml +++ b/charts/stable/blocky/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: v0.15 description: DNS proxy as ad-blocker for local network name: blocky -version: 9.0.0 +version: 9.0.1 kubeVersion: ">=1.16.0-0" keywords: - blocky diff --git a/charts/stable/blocky/README.md b/charts/stable/blocky/README.md index eb6b81a4..e2fcb748 100644 --- a/charts/stable/blocky/README.md +++ b/charts/stable/blocky/README.md @@ -1,6 +1,6 @@ # blocky -![Version: 9.0.0](https://img.shields.io/badge/Version-9.0.0-informational?style=flat-square) ![AppVersion: v0.15](https://img.shields.io/badge/AppVersion-v0.15-informational?style=flat-square) +![Version: 9.0.1](https://img.shields.io/badge/Version-9.0.1-informational?style=flat-square) ![AppVersion: v0.15](https://img.shields.io/badge/AppVersion-v0.15-informational?style=flat-square) DNS proxy as ad-blocker for local network diff --git a/charts/stable/blocky/templates/prometheusrules.yaml b/charts/stable/blocky/templates/prometheusrules.yaml index a5d67412..1c5a9381 100644 --- a/charts/stable/blocky/templates/prometheusrules.yaml +++ b/charts/stable/blocky/templates/prometheusrules.yaml @@ -10,14 +10,14 @@ metadata: {{- end }} spec: groups: - - name: blocky + - name: {{ include "common.names.fullname" . }} rules: - alert: BlockyAbsent annotations: description: Blocky has disappeared from Prometheus service discovery. summary: Blocky is down. expr: | - absent(up{job=~".*blocky.*"} == 1) + absent(up{job="{{ include "common.names.fullname" . }}"} == 1) for: 5m labels: severity: critical