Skip to content

Commit 42b0c90

Browse files
committed
Added memory additional memory stats and entropy available
1 parent 72ef01b commit 42b0c90

File tree

6 files changed

+518
-0
lines changed

6 files changed

+518
-0
lines changed

mem_stats/README.mkdn

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

mem_stats/conf.d/mem_stats.pyconf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
}

0 commit comments

Comments
 (0)