prometheus: remove redundant '%' symbols

pull/106/head
jeltz 7 months ago
parent 934137903a
commit 94ba30cc3b
Signed by: jeltz
GPG Key ID: 800882B66C0C3326

@ -16,7 +16,7 @@ prometheus__rules_node:
labels: labels:
severity: warning severity: warning
annotations: annotations:
FreeMemory: !unsafe "{{ $value | humanizePercentage }} %" FreeMemory: !unsafe "{{ $value | humanizePercentage }}"
- alert: HostSwapIsFillingUp - alert: HostSwapIsFillingUp
expr: expr:
( (
@ -29,7 +29,7 @@ prometheus__rules_node:
labels: labels:
severity: critical severity: critical
annotations: annotations:
UsedSwap: !unsafe "{{ $value | humanizePercentage }} %" UsedSwap: !unsafe "{{ $value | humanizePercentage }}"
- alert: HostPhysicalComponentTooHot - alert: HostPhysicalComponentTooHot
expr: expr:
node_hwmon_temp_celsius > 79 node_hwmon_temp_celsius > 79
@ -103,7 +103,7 @@ prometheus__rules_node:
severity: critical severity: critical
annotations: annotations:
Mountpoint: !unsafe "{{ $labels.mountpoint }}" Mountpoint: !unsafe "{{ $labels.mountpoint }}"
FreeSpace: !unsafe "{{ $value | humanizePercentage }} %" FreeSpace: !unsafe "{{ $value | humanizePercentage }}"
- alert: HostConntrackLimit - alert: HostConntrackLimit
expr: expr:
( (
@ -114,7 +114,7 @@ prometheus__rules_node:
labels: labels:
severity: warning severity: warning
annotations: annotations:
Filled: !unsafe "{{ $value | humanizePercentage }} %" Filled: !unsafe "{{ $value | humanizePercentage }}"
- alert: HostClockSkew - alert: HostClockSkew
expr: expr:
( (
@ -149,7 +149,7 @@ prometheus__rules_node:
severity: warning severity: warning
annotations: annotations:
Mountpoint: !unsafe "{{ $labels.mountpoint }}" Mountpoint: !unsafe "{{ $labels.mountpoint }}"
FreeInodes: !unsafe "{{ $value | humanizePercentage }} %" FreeInodes: !unsafe "{{ $value | humanizePercentage }}"
- alert: CpuUsage - alert: CpuUsage
expr: expr:
( (
@ -161,7 +161,7 @@ prometheus__rules_node:
labels: labels:
severity: warning severity: warning
annotations: annotations:
Usage: !unsafe "{{ $value | humanizePercentage }} %" Usage: !unsafe "{{ $value | humanizePercentage }}"
- alert: SystemdServiceFailed - alert: SystemdServiceFailed
expr: expr:
node_systemd_unit_state{state="failed"} == 1 node_systemd_unit_state{state="failed"} == 1
@ -196,5 +196,5 @@ prometheus__rules_node:
severity: warning severity: warning
annotations: annotations:
Disk: !unsafe "{{ $labels.disk }}" Disk: !unsafe "{{ $labels.disk }}"
Steal: !unsafe "{{ $value | humanizePercentage }} %" Steal: !unsafe "{{ $value | humanizePercentage }}"
... ...

@ -28,7 +28,7 @@ prometheus__rules_switch:
labels: labels:
severity: warning severity: warning
annotations: annotations:
ErrorRate: !unsafe "{{ $value | humanizePercentage }} %" ErrorRate: !unsafe "{{ $value | humanizePercentage }}"
Interface: !unsafe "{{ $labels.ifName }} Interface: !unsafe "{{ $labels.ifName }}
{{ if $labels.ifAlias }}- {{ $labels.ifAlias }}{{ end }}" {{ if $labels.ifAlias }}- {{ $labels.ifAlias }}{{ end }}"
- alert: SwitchOutErrors - alert: SwitchOutErrors
@ -41,7 +41,7 @@ prometheus__rules_switch:
labels: labels:
severity: warning severity: warning
annotations: annotations:
ErrorRate: !unsafe "{{ $value | humanizePercentage }} %" ErrorRate: !unsafe "{{ $value | humanizePercentage }}"
Interface: !unsafe "{{ $labels.ifName }} Interface: !unsafe "{{ $labels.ifName }}
{{ if $labels.ifAlias }}- {{ $labels.ifAlias }}{{ end }}" {{ if $labels.ifAlias }}- {{ $labels.ifAlias }}{{ end }}"
- alert: SwitchInLinkUsage - alert: SwitchInLinkUsage
@ -52,7 +52,7 @@ prometheus__rules_switch:
labels: labels:
severity: warning severity: warning
annotations: annotations:
Usage: !unsafe "{{ $value | humanizePercentage }} %" Usage: !unsafe "{{ $value | humanizePercentage }}"
Interface: !unsafe "{{ $labels.ifName }} Interface: !unsafe "{{ $labels.ifName }}
{{ if $labels.ifAlias }}- {{ $labels.ifAlias }}{{ end }}" {{ if $labels.ifAlias }}- {{ $labels.ifAlias }}{{ end }}"
- alert: SwitchInLinkUsage - alert: SwitchInLinkUsage
@ -63,7 +63,7 @@ prometheus__rules_switch:
labels: labels:
severity: critical severity: critical
annotations: annotations:
Usage: !unsafe "{{ $value | humanizePercentage }} %" Usage: !unsafe "{{ $value | humanizePercentage }}"
Interface: !unsafe "{{ $labels.ifName }} Interface: !unsafe "{{ $labels.ifName }}
{{ if $labels.ifAlias }}- {{ $labels.ifAlias }}{{ end }}" {{ if $labels.ifAlias }}- {{ $labels.ifAlias }}{{ end }}"
- alert: SwitchOutLinkUsage - alert: SwitchOutLinkUsage
@ -74,7 +74,7 @@ prometheus__rules_switch:
labels: labels:
severity: warning severity: warning
annotations: annotations:
Usage: !unsafe "{{ $value | humanizePercentage }} %" Usage: !unsafe "{{ $value | humanizePercentage }}"
Interface: !unsafe "{{ $labels.ifName }} Interface: !unsafe "{{ $labels.ifName }}
{{ if $labels.ifAlias }}- {{ $labels.ifAlias }}{{ end }}" {{ if $labels.ifAlias }}- {{ $labels.ifAlias }}{{ end }}"
- alert: SwitchOutLinkUsage - alert: SwitchOutLinkUsage
@ -85,7 +85,7 @@ prometheus__rules_switch:
labels: labels:
severity: warning severity: warning
annotations: annotations:
Usage: !unsafe "{{ $value | humanizePercentage }} %" Usage: !unsafe "{{ $value | humanizePercentage }}"
Interface: !unsafe "{{ $labels.ifName }} Interface: !unsafe "{{ $labels.ifName }}
{{ if $labels.ifAlias }}- {{ $labels.ifAlias }}{{ end }}" {{ if $labels.ifAlias }}- {{ $labels.ifAlias }}{{ end }}"
... ...

Loading…
Cancel
Save