Debian Codegraph @

gmond/python_modules/conf.d/diskfree.pyconf

raw
1 # Will emit both the absolute amount of disk space left in GB as well as
2 # percentage e.g.
3 # disk_free_absolute_rootfs = 25.285355
4 # disk_free_percent_rootfs = 9.471972
5 #
6 # By default it will report only disks larger than 1 GB. Set min_disk_size to override
7 # Alternative specify additional paths you want monitored under explicit_mounts_to_check
8
9 modules {
10 module {
11 name = "diskfree"
12 language = "python"
13
14 param mounts {
15 value = '/proc/mounts'
16 }
17
18 # Minimum disk size to report in GB
19 param min_disk_size {
20 value = 1
21 }
22
23 # Values are space delimited
24 # param explicit_mounts_to_check {
25 # value = "/run /boot"
26 # }
27 }
28 }
29
30 collection_group {
31 collect_every = 60
32 time_threshold = 180
33
34 metric {
35 name_match = "disk_free_(.+)"
36 }
37 }