fix typo from templating which caused missing metrics and add alerts to prevent that from happening again
This commit is contained in:
parent
ba6529d8e5
commit
7120a80696
1 changed files with 29 additions and 2 deletions
|
|
@ -134,6 +134,33 @@ serverFiles:
|
||||||
severity: page
|
severity: page
|
||||||
annotations:
|
annotations:
|
||||||
summary: Power voltage on a power supply is critically low indicating power outage.
|
summary: Power voltage on a power supply is critically low indicating power outage.
|
||||||
|
- name: HighPowerUsage
|
||||||
|
rules:
|
||||||
|
- alert: HighPowerUsage
|
||||||
|
expr: (max(r730_idrac_amperageProbeReading) or on() vector(0)) > 112
|
||||||
|
for: 30m
|
||||||
|
labels:
|
||||||
|
severity: page
|
||||||
|
annotations:
|
||||||
|
summary: High Power usage. Baseline is 112W
|
||||||
|
- name: NoNodeLoadData
|
||||||
|
rules:
|
||||||
|
- alert: NoNodeLoadData
|
||||||
|
expr: (node_load1 OR on() vector(0)) == 0
|
||||||
|
for: 10m
|
||||||
|
labels:
|
||||||
|
severity: page
|
||||||
|
annotations:
|
||||||
|
summary: No node load data. Can signal that prometheus is not scraping
|
||||||
|
- name: NoiDRACData
|
||||||
|
rules:
|
||||||
|
- alert: NoiDRACData
|
||||||
|
expr: (max(r730_idrac_amperageProbeReading) or on() vector(0)) == 0
|
||||||
|
for: 10m
|
||||||
|
labels:
|
||||||
|
severity: page
|
||||||
|
annotations:
|
||||||
|
summary: No iDRAC amperage reading. Can signal that prometheus is not scraping
|
||||||
|
|
||||||
extraScrapeConfigs: |
|
extraScrapeConfigs: |
|
||||||
- job_name: 'snmp-idrac'
|
- job_name: 'snmp-idrac'
|
||||||
|
|
@ -155,7 +182,7 @@ extraScrapeConfigs: |
|
||||||
target_label: '__name__'
|
target_label: '__name__'
|
||||||
action: replace
|
action: replace
|
||||||
regex: '(.*)'
|
regex: '(.*)'
|
||||||
replacement: 'r730_idrac_${1}'
|
replacement: 'r730_idrac_$${1}'
|
||||||
- job_name: 'openwrt'
|
- job_name: 'openwrt'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
|
|
@ -173,4 +200,4 @@ extraScrapeConfigs: |
|
||||||
target_label: '__name__'
|
target_label: '__name__'
|
||||||
action: replace
|
action: replace
|
||||||
regex: '(.*)'
|
regex: '(.*)'
|
||||||
replacement: 'openwrt_${1}'
|
replacement: 'openwrt_$${1}'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue