-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from Starttoaster/prometheusrules
Add some prometheus rules to the helm chart
- Loading branch information
Showing
4 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{{- if .Values.prometheusRule.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
name: {{ include "proxmox-exporter.fullname" . }} | ||
labels: | ||
{{- include "proxmox-exporter.labels" . | nindent 4 }} | ||
spec: | ||
groups: | ||
- name: ProxmoxNodes | ||
rules: | ||
- alert: ProxmoxNodeDown | ||
annotations: | ||
title: Proxmox node {{ $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 }} | ||
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]) | ||
for: 1m | ||
labels: | ||
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 | ||
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 | ||
expr: | | ||
absent_over_time(proxmox_guest_up[1h]) | ||
for: 1m | ||
labels: | ||
severity: critical | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters