diff --git a/chart/proxmox-exporter/Chart.yaml b/chart/proxmox-exporter/Chart.yaml index ced0768..accf706 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.2.3 +version: 0.2.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 8ca7d8f..ccf5087 100644 --- a/chart/proxmox-exporter/templates/prometheusrule.yaml +++ b/chart/proxmox-exporter/templates/prometheusrule.yaml @@ -9,6 +9,10 @@ spec: groups: - name: ProxmoxNodes rules: + {{- with .Values.prometheusRule.additionalRules }} + {{- toYaml . | nindent 8 }} + {{- end }} + {{- if .Values.prometheusRule.enableBuiltinRules }} - alert: ProxmoxNodeDown annotations: summary: Proxmox node {{ printf "{{ $labels.node }}" }} is down @@ -141,4 +145,5 @@ spec: for: 5m labels: severity: critical + {{- end }} {{- end }} diff --git a/chart/proxmox-exporter/values.yaml b/chart/proxmox-exporter/values.yaml index d177b39..eb6ec46 100644 --- a/chart/proxmox-exporter/values.yaml +++ b/chart/proxmox-exporter/values.yaml @@ -50,6 +50,21 @@ serviceMonitor: prometheusRule: enabled: false + # Disable this to use your own rules provided in additionalRules + enableBuiltinRules: true + + # A list of additional rules to provide to the PrometheusRule CR + # additionalRules: + # - alert: ProxmoxRuleName + # annotations: + # summary: Proxmox node {{ printf "{{ $labels.node }}" }} is down + # description: Check the alerting Proxmox host + # expr: | + # proxmox_metric_name != 0 + # for: 1m + # labels: + # severity: critical + serviceAccount: # Specifies whether a service account should be created create: true