Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Picasoft
Technique
Dockerfiles
Commits
016af2f5
Verified
Commit
016af2f5
authored
Aug 29, 2021
by
Quentin Duchemin
Browse files
Alerts based on SMART values only for physical machines
parent
7fa2bb33
Changes
2
Hide whitespace changes
Inline
Side-by-side
pica-metrologie/docker-compose.yml
View file @
016af2f5
...
...
@@ -78,12 +78,12 @@ services:
# Where to read metrics
-
"
-datasource.url=http://victoria-metrics:8428"
# Where to write and read alert states, to keep
# state during restart, as vma
gen
t stores states in memory
# state during restart, as vma
ler
t stores states in memory
-
"
-remoteWrite.url=http://victoria-metrics:8428"
-
"
-remoteRead.url=http://victoria-metrics:8428"
# Where to send alert when they must be triggered
-
"
-notifier.url=http://alertmanager:9093"
# HTTP server for vma
gen
t's own metrics
# HTTP server for vma
ler
t's own metrics
-
"
-httpListenAddr=:8880"
# By default, evaluate rules every 1 minute
-
"
-evaluationInterval=1m"
...
...
pica-metrologie/vmalert-rules.yml
View file @
016af2f5
...
...
@@ -68,7 +68,10 @@ groups:
summary
:
Proxmox HDD volume 90% full
description
:
Proxmox HDD volume ({{ $labels.storage }}) on {{ $labels.instance }} is {{ $value }}% full
-
alert
:
DiskDamaged
expr
:
smartmon_device_smart_healthy !=
1
# Only get values from real disks so ignore VMs
# This is hardcoded but I cannot see other way to do so because VMs do no have a specific prefix
# We must add new machines here
expr
:
smartmon_device_smart_healthy{node=~"alice|bob"} !=
1
labels
:
severity
:
critical
annotations
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment