設定ファイルディレクトリ(デフォルトは /var/lib/ganglia/conf)に view_~.json ファイルを作成し、JSON で定義
{
"view_name": "AggregateWebCpu",
"view_type": "standard",
"items": [
{
"title": "web01_cpu_idle",
"host_regex": [ { "regex":"web01" } ],
"metric_regex": [ { "regex":"multicpu_idle" } ],
"graph_type": "line",
"aggregate_graph": "true"
},
{
"title": "web01_cpu0",
"host_regex": [ { "regex":"web01" } ],
"metric_regex": [ { "regex":"multicpu_(system|user|idle|nice|wio)0" } ],
"graph_type": "stack",
"aggregate_graph": "true"
},
{
"title": "web01_cpu1",
"host_regex": [ { "regex":"web01" } ],
"metric_regex": [ { "regex":"multicpu_(system|user|idle|nice|wio)1" } ],
"graph_type": "stack",
"aggregate_graph": "true"
},
]
}