Skip to content

Commit 3198aaf

Browse files
committed
Merge pull request ganglia#200 from chuntera/master
add lustre gmond python module
2 parents e03cd47 + 86c9d44 commit 3198aaf

7 files changed

Lines changed: 1053 additions & 0 deletions

File tree

lustre/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Lustre Client Ganglia Metrics
2+
3+
These python scripts collect lustre filesystem metric for ganglia-gmond module.
4+
5+
The scripts attempt to collect separate metrics for each lustre
6+
filesystem mounted on the client. In addition to typical read/write bandwidth
7+
metrics, the scripts also attempt to collect inode-related metrics (network RPC calls from the client to the object storage servers).
8+
9+
Lustre client exposes metrics through linux sysfs
10+
(ie. /proc/fs/lustre/...).
11+
12+
The "llite" metrics are high-level aggergate metrics of the underlying
13+
storage targets. On older versions of lustre, there are known bugs in
14+
the llite values. The "osc" metrics are lower level, offering values
15+
for each storage target (ie. LUN) that is accessed by the client. Note
16+
that lustre client uses local (client-side) file caching which can
17+
affect these values.

lustre/conf.d/lusclt_llite.pyconf

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
modules {
2+
module {
3+
name = "lusclt_llite"
4+
language = "python"
5+
}
6+
}
7+
8+
collection_group {
9+
collect_every = 60
10+
time_threshold = 600
11+
12+
metric {
13+
name_match = "lusclt_([a-zA-Z0-9]+)_write_bytes_per_sec"
14+
}
15+
16+
metric {
17+
name_match = "lusclt_([a-zA-Z0-9]+)_brw_read_bytes_per_sec"
18+
}
19+
20+
metric {
21+
name_match = "lusclt_([a-zA-Z0-9]+)_file_ops"
22+
}
23+
24+
metric {
25+
name_match = "lusclt_([a-zA-Z0-9]+)_inode_ops"
26+
}
27+
}

lustre/conf.d/lusclt_osc.pyconf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
modules {
2+
module {
3+
name = "lusclt_osc"
4+
language = "python"
5+
}
6+
}
7+
8+
collection_group {
9+
collect_every = 60
10+
time_threshold = 600
11+
12+
metric {
13+
name_match = "lusclt_osc_total_([a-zA-Z0-9]+)"
14+
}
15+
16+
metric {
17+
name_match = "lusclt_([a-zA-Z0-9]+)_total_([a-zA-Z0-9]+)"
18+
}
19+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"report_name" : "lusclt_rpc_report",
3+
"report_type" : "standard",
4+
"title" : "Lustre Client RPC",
5+
"vertical_label" : "calls/s",
6+
"series" : [
7+
{ "metric": "lusclt_osc_total_ost_ops", "color": "FF0000", "label": "Home", "line_width": "2","type": "stack" }
8+
]
9+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"report_name" : "lusclt_rm_report",
3+
"report_type" : "standard",
4+
"title" : "Lustre Client Bandwidth",
5+
"vertical_label" : "bytes/s",
6+
"series" : [
7+
{ "metric": "lusclt_osc_total_read_bytes_per_sec", "color": "FF8A60", "label": "Read", "line_width": "2","type": "stack" },
8+
{ "metric": "lusclt_osc_total_write_bytes_per_sec", "color": "FF0000", "label": "Write", "line_width": "2","type": "stack" }
9+
]
10+
}

0 commit comments

Comments
 (0)