File tree Expand file tree Collapse file tree 6 files changed +518
-0
lines changed Expand file tree Collapse file tree 6 files changed +518
-0
lines changed Original file line number Diff line number Diff line change 1+ mem_stats
2+ ===============
3+
4+ Python module for ganglia 3.1.
5+
6+ This module allows you to collect memory metrics that have been left out of stock
7+ Ganglia gmond. For example I have it
8+
9+ Install
10+ ===============
11+
12+ Copy mem_stats.py from python_modules to your python modules directory e.g.
13+
14+ /usr/lib64/ganglia/python_modules
15+
16+ and mem_stats.pyconf to
17+
18+ /etc/ganglia/conf.d/
19+
20+ Restart Gmond and you should be set. If you would like additional memory stats collected
21+ look through mem_stats.py for the metric you want then add it to mem_stats.pyconf e.g.
22+ if you wanted to keep track of unevictable memory you would add
23+
24+ metric {
25+ name = "mem_unevictable"
26+ title = "Unevictable memory"
27+ value_threshold = 1.0
28+ }
29+
30+ Restart Gmond and you are done.
31+
32+ ## AUTHOR
33+
34+ Author: Vladimir Vuksan https://github.com/vvuksan
Original file line number Diff line number Diff line change 1+ modules {
2+ module {
3+ name = "mem_stats"
4+ language = "python"
5+ }
6+ }
7+
8+ collection_group {
9+ collect_every = 30
10+ time_threshold = 45
11+ metric {
12+ name = "mem_writeback"
13+ title = "Mem actively being written to disk"
14+ value_threshold = 1.0
15+ }
16+ metric {
17+ name = "mem_dirty"
18+ title = "Mem waiting to be written to disk"
19+ value_threshold = 1.0
20+ }
21+
22+ }
You can’t perform that action at this time.
0 commit comments