From e0ac4a3e5f62c88a1697e275218fab71b627b62e Mon Sep 17 00:00:00 2001 From: brandonbutler Date: Mon, 11 Mar 2024 22:01:26 +0000 Subject: [PATCH] Helm: fix issue with PrometheusRule gotmpl sections being mistaken for helm's gotmpl --- chart/proxmox-exporter/Chart.yaml | 2 +- chart/proxmox-exporter/templates/prometheusrule.yaml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/chart/proxmox-exporter/Chart.yaml b/chart/proxmox-exporter/Chart.yaml index ed1e5b5..3b37373 100644 --- a/chart/proxmox-exporter/Chart.yaml +++ b/chart/proxmox-exporter/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.3 +version: 0.1.4 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/chart/proxmox-exporter/templates/prometheusrule.yaml b/chart/proxmox-exporter/templates/prometheusrule.yaml index c7bb7db..e5c88fe 100644 --- a/chart/proxmox-exporter/templates/prometheusrule.yaml +++ b/chart/proxmox-exporter/templates/prometheusrule.yaml @@ -11,7 +11,7 @@ spec: rules: - alert: ProxmoxNodeDown annotations: - title: Proxmox node {{ $labels.node }} is down + title: Proxmox node {{ printf "{{ $labels.node }}" }} is down expr: | proxmox_node_up == 0 for: 1m @@ -19,7 +19,7 @@ spec: severity: critical - alert: ProxmoxNodeTargetLost annotations: - title: Proxmox node up metric absent for {{ $labels.node }} + title: Proxmox node up metric absent for {{ printf "{{ $labels.node }}" }} description: Something wrong with the exporter, the Proxmox API server(s) it is configured to make requests to, or the server the exporter is running on expr: | absent_over_time(proxmox_node_up[1h]) @@ -28,8 +28,8 @@ spec: severity: critical - alert: ProxmoxGuestDown annotations: - title: Proxmox guest {{ $labels.name }} is down - description: Guest {{ $labels.name }} of type {{ $labels.type }} on node {{ $labels.node }} is down + title: Proxmox guest {{ printf "{{ $labels.name }}" }} is down + description: Guest {{ printf "{{ $labels.name }}" }} of type {{ printf "{{ $labels.type }}" }} on node {{ printf "{{ $labels.node }}" }} is down expr: | proxmox_guest_up == 0 for: 1m @@ -37,8 +37,8 @@ spec: severity: critical - alert: ProxmoxGuestTargetLost annotations: - title: Proxmox guest up metric absent for {{ $labels.name }} - description: Guest {{ $labels.name }} of type {{ $labels.type }} on node {{ $labels.node }} may be down + title: Proxmox guest up metric absent for {{ printf "{{ $labels.name }}" }} + description: Guest {{ printf "{{ $labels.name }}" }} of type {{ printf "{{ $labels.type }}" }} on node {{ printf "{{ $labels.node }}" }} may be down expr: | absent_over_time(proxmox_guest_up[1h]) for: 1m