Skip to content

Commit ef5c8fc

Browse files
committed
Module to collect VM stats from /proc/vmstat
1 parent 88bca8a commit ef5c8fc

3 files changed

Lines changed: 703 additions & 0 deletions

File tree

system/vm_stats/README.mkdn

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
vm_stats
2+
===============
3+
4+
Python module for ganglia 3.1.
5+
6+
This module allows you to collect VM metrics.
7+
are values that are collected from
8+
9+
/proc/vmstat
10+
11+
12+
Install
13+
===============
14+
15+
Copy vm_stats.py from python_modules to your python modules directory e.g.
16+
17+
/usr/lib64/ganglia/python_modules
18+
19+
and vm_stats.pyconf to
20+
21+
/etc/ganglia/conf.d/
22+
23+
If you would like only specific metrics emitted you will need to comment out the name_match section
24+
25+
metric {
26+
name = "vm_numa_interleave"
27+
title = "NUMA interleave"
28+
value_threshold = 1.0
29+
}
30+
31+
Restart Gmond and you are done.
32+
33+
## AUTHOR
34+
35+
Author: Vladimir Vuksan https://github.com/vvuksan
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
modules {
2+
module {
3+
name = "vm_stats"
4+
language = "python"
5+
}
6+
}
7+
8+
collection_group {
9+
collect_every = 30
10+
time_threshold = 45
11+
12+
metric {
13+
name_match = "vm_(.+)"
14+
value_threshold = 1.0
15+
}
16+
17+
}

0 commit comments

Comments
 (0)