From d8f3521a02d1f365397e9e836d001af61eb3cf14 Mon Sep 17 00:00:00 2001
From: robk-tahoe <robk-tahoe@allmydata.com>
Date: Tue, 25 Mar 2008 18:30:46 -0700
Subject: [PATCH] munin: added a series of munin graphs to report upload helper
 state

---
 misc/munin/tahoe-stats.py | 86 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 86 insertions(+)

diff --git a/misc/munin/tahoe-stats.py b/misc/munin/tahoe-stats.py
index 96274de7..6c6a4bf6 100644
--- a/misc/munin/tahoe-stats.py
+++ b/misc/munin/tahoe-stats.py
@@ -98,6 +98,92 @@ PLUGINS = {
                                      ]),
         },
 
+    'tahoe_helper_incoming_files':
+        { 'statid': 'chk_upload_helper.inc_count',
+          'category': 'stats',
+          'configheader': '\n'.join(['graph_title Tahoe Upload Helper Incoming File Count',
+                                     'graph_vlabel n files',
+                                     'graph_category tahoe_helper',
+                                     'graph_info This graph shows number of incoming files',
+                                     ]),
+          'graph_config': '\n'.join(['%(name)s.label %(name)s',
+                                     '%(name)s.draw LINE1',
+                                     ]),
+          'graph_render': '\n'.join(['%(name)s.value %(value)s',
+                                     ]),
+        },
+    'tahoe_helper_incoming_filesize':
+        { 'statid': 'chk_upload_helper.inc_size',
+          'category': 'stats',
+          'configheader': '\n'.join(['graph_title Tahoe Upload Helper Incoming File Size',
+                                     'graph_vlabel bytes',
+                                     'graph_category tahoe_helper',
+                                     'graph_info This graph shows total size of incoming files',
+                                     ]),
+          'graph_config': '\n'.join(['%(name)s.label %(name)s',
+                                     '%(name)s.draw LINE1',
+                                     ]),
+          'graph_render': '\n'.join(['%(name)s.value %(value)s',
+                                     ]),
+        },
+    'tahoe_helper_incoming_files_old':
+        { 'statid': 'chk_upload_helper.inc_size_old',
+          'category': 'stats',
+          'configheader': '\n'.join(['graph_title Tahoe Upload Helper Incoming Old Files',
+                                     'graph_vlabel bytes',
+                                     'graph_category tahoe_helper',
+                                     'graph_info This graph shows total size of old incoming files',
+                                     ]),
+          'graph_config': '\n'.join(['%(name)s.label %(name)s',
+                                     '%(name)s.draw LINE1',
+                                     ]),
+          'graph_render': '\n'.join(['%(name)s.value %(value)s',
+                                     ]),
+        },
+
+    'tahoe_helper_encoding_files':
+        { 'statid': 'chk_upload_helper.enc_count',
+          'category': 'stats',
+          'configheader': '\n'.join(['graph_title Tahoe Upload Helper Encoding File Count',
+                                     'graph_vlabel n files',
+                                     'graph_category tahoe_helper',
+                                     'graph_info This graph shows number of encoding files',
+                                     ]),
+          'graph_config': '\n'.join(['%(name)s.label %(name)s',
+                                     '%(name)s.draw LINE1',
+                                     ]),
+          'graph_render': '\n'.join(['%(name)s.value %(value)s',
+                                     ]),
+        },
+    'tahoe_helper_encoding_filesize':
+        { 'statid': 'chk_upload_helper.enc_size',
+          'category': 'stats',
+          'configheader': '\n'.join(['graph_title Tahoe Upload Helper Encoding File Size',
+                                     'graph_vlabel bytes',
+                                     'graph_category tahoe_helper',
+                                     'graph_info This graph shows total size of encoding files',
+                                     ]),
+          'graph_config': '\n'.join(['%(name)s.label %(name)s',
+                                     '%(name)s.draw LINE1',
+                                     ]),
+          'graph_render': '\n'.join(['%(name)s.value %(value)s',
+                                     ]),
+        },
+    'tahoe_helper_encoding_files_old':
+        { 'statid': 'chk_upload_helper.enc_size_old',
+          'category': 'stats',
+          'configheader': '\n'.join(['graph_title Tahoe Upload Helper Encoding Old Files',
+                                     'graph_vlabel bytes',
+                                     'graph_category tahoe_helper',
+                                     'graph_info This graph shows total size of old encoding files',
+                                     ]),
+          'graph_config': '\n'.join(['%(name)s.label %(name)s',
+                                     '%(name)s.draw LINE1',
+                                     ]),
+          'graph_render': '\n'.join(['%(name)s.value %(value)s',
+                                     ]),
+        },
+
     }
 
 def smash_name(name):
-- 
2.45.2