Skip to content

Commit

Permalink
Helm: fix issue with PrometheusRule gotmpl sections being mistaken fo…
Browse files Browse the repository at this point in the history
…r helm's gotmpl
  • Loading branch information
Starttoaster committed Mar 11, 2024
1 parent 8e00533 commit e0ac4a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion chart/proxmox-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions chart/proxmox-exporter/templates/prometheusrule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ 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
labels:
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])
Expand All @@ -28,17 +28,17 @@ 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
labels:
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
Expand Down

0 comments on commit e0ac4a3

Please sign in to comment.