diff --git a/charts/kubernetes-operations/Chart.yaml b/charts/kubernetes-operations/Chart.yaml index db04386..641988f 100644 --- a/charts/kubernetes-operations/Chart.yaml +++ b/charts/kubernetes-operations/Chart.yaml @@ -3,7 +3,7 @@ apiVersion: v2 name: kubernetes-operations -version: 0.0.9 +version: 0.0.10 description: A set of Plutono dashboards and Prometheus alerting rules combined with playbooks to ensure effective operations of Kubernetes. maintainers: - name: Richard Tief (I520251) diff --git a/charts/kubernetes-operations/templates/alerts.yaml b/charts/kubernetes-operations/templates/alerts.yaml index 8088b58..7242ebc 100644 --- a/charts/kubernetes-operations/templates/alerts.yaml +++ b/charts/kubernetes-operations/templates/alerts.yaml @@ -4,7 +4,7 @@ apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: - name: {{ printf "%s-%s" $.Release.Name $path | replace "/" "-" | trunc 63 | trimSuffix ".alerts.tpl" }} + name: {{ printf "%s-%s" $.Release.Name $path | replace "/" "-" | replace "." "-" | trimSuffix "-tpl" | replace "-alerts-" "-" | trunc 63 }} labels: {{ include "kubernetes-operations.ruleSelectorLabels" (list $path $root) | indent 4 }} {{ include "kubernetes-operations.labels" (list $path $root) | indent 4 }}