munin/tahoe_stats: rearrange config a bit, no functional changes

This commit is contained in:
Brian Warner 2008-07-14 13:25:01 -07:00
parent 6525742b37
commit 0f231e2e66

View File

@ -9,6 +9,38 @@ import time
STAT_VALIDITY = 300 # 5min limit on reporting stats STAT_VALIDITY = 300 # 5min limit on reporting stats
PLUGINS = { PLUGINS = {
# LOAD AVERAGE
'tahoe_runtime_load_avg':
{ 'statid': 'load_monitor.avg_load',
'category': 'stats',
'configheader': '\n'.join(['graph_title Tahoe Runtime Load Average',
'graph_vlabel load',
'graph_category tahoe',
'graph_info This graph shows average reactor delay',
]),
'graph_config': '\n'.join(['%(name)s.label %(name)s',
'%(name)s.draw LINE1',
]),
'graph_render': '\n'.join(['%(name)s.value %(value)s',
]),
},
'tahoe_runtime_load_peak':
{ 'statid': 'load_monitor.max_load',
'category': 'stats',
'configheader': '\n'.join(['graph_title Tahoe Runtime Load Peak',
'graph_vlabel load',
'graph_category tahoe',
'graph_info This graph shows peak reactor delay',
]),
'graph_config': '\n'.join(['%(name)s.label %(name)s',
'%(name)s.draw LINE1',
]),
'graph_render': '\n'.join(['%(name)s.value %(value)s',
]),
},
# STORAGE ALLOCATION (BYTES)
'tahoe_storage_consumed': 'tahoe_storage_consumed':
{ 'statid': 'storage_server.consumed', { 'statid': 'storage_server.consumed',
'category': 'stats', 'category': 'stats',
@ -24,6 +56,7 @@ PLUGINS = {
'graph_render': '\n'.join(['%(name)s.value %(value)s', 'graph_render': '\n'.join(['%(name)s.value %(value)s',
]), ]),
}, },
'tahoe_storage_allocated': 'tahoe_storage_allocated':
{ 'statid': 'storage_server.allocated', { 'statid': 'storage_server.allocated',
'category': 'stats', 'category': 'stats',
@ -40,35 +73,6 @@ PLUGINS = {
]), ]),
}, },
'tahoe_runtime_load_avg':
{ 'statid': 'load_monitor.avg_load',
'category': 'stats',
'configheader': '\n'.join(['graph_title Tahoe Runtime Load Average',
'graph_vlabel load',
'graph_category tahoe',
'graph_info This graph shows average reactor delay',
]),
'graph_config': '\n'.join(['%(name)s.label %(name)s',
'%(name)s.draw LINE1',
]),
'graph_render': '\n'.join(['%(name)s.value %(value)s',
]),
},
'tahoe_runtime_load_peak':
{ 'statid': 'load_monitor.max_load',
'category': 'stats',
'configheader': '\n'.join(['graph_title Tahoe Runtime Load Peak',
'graph_vlabel load',
'graph_category tahoe',
'graph_info This graph shows peak reactor delay',
]),
'graph_config': '\n'.join(['%(name)s.label %(name)s',
'%(name)s.draw LINE1',
]),
'graph_render': '\n'.join(['%(name)s.value %(value)s',
]),
},
'tahoe_storage_bytes_added': 'tahoe_storage_bytes_added':
{ 'statid': 'storage_server.bytes_added', { 'statid': 'storage_server.bytes_added',
'category': 'counters', 'category': 'counters',
@ -83,6 +87,7 @@ PLUGINS = {
'graph_render': '\n'.join(['%(name)s.value %(value)s', 'graph_render': '\n'.join(['%(name)s.value %(value)s',
]), ]),
}, },
'tahoe_storage_bytes_freed': 'tahoe_storage_bytes_freed':
{ 'statid': 'storage_server.bytes_freed', { 'statid': 'storage_server.bytes_freed',
'category': 'counters', 'category': 'counters',
@ -98,6 +103,8 @@ PLUGINS = {
]), ]),
}, },
# HELPER
'tahoe_helper_incoming_files': 'tahoe_helper_incoming_files':
{ 'statid': 'chk_upload_helper.incoming_count', { 'statid': 'chk_upload_helper.incoming_count',
'category': 'stats', 'category': 'stats',
@ -280,6 +287,7 @@ PLUGINS = {
]), ]),
}, },
# WEBAPI
'tahoe_uploader_bytes_uploaded': 'tahoe_uploader_bytes_uploaded':
{ 'statid': 'uploader.bytes_uploaded', { 'statid': 'uploader.bytes_uploaded',
'category': 'counters', 'category': 'counters',