aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-18 16:36:15 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-18 16:36:15 +0100
commit23da95c5ca8ce23e43b3fc628a51e8fee44f2de1 (patch)
treec3cd2c38dd3c82b7e20abad73a403c34b94c3db5 /doc
parentd497c0a523c3d4328b452fd2a5e38a0ae973d0d3 (diff)
downloaddabmux-23da95c5ca8ce23e43b3fc628a51e8fee44f2de1.tar.gz
dabmux-23da95c5ca8ce23e43b3fc628a51e8fee44f2de1.tar.bz2
dabmux-23da95c5ca8ce23e43b3fc628a51e8fee44f2de1.zip
make separate munin graphs for buffers and overruns
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/stats_dabmux_multi.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/doc/stats_dabmux_multi.py b/doc/stats_dabmux_multi.py
index a9c6661..16e65e9 100755
--- a/doc/stats_dabmux_multi.py
+++ b/doc/stats_dabmux_multi.py
@@ -8,11 +8,7 @@ import json
import socket
import os
-config_template_top = """
-multigraph zmq_inbuf
-"""
-
-config_template_individual = """
+config_template = """
multigraph zmq_inbuf.id_{ident}
graph_title Contribution {ident} buffer
@@ -30,6 +26,14 @@ low.info Min buffer size
low.label Min Buffer Bytes
low.min 0
low.warning 1:
+
+graph_title Contribution {ident} over/underruns
+graph_order underruns overruns
+graph_args --base 1000
+graph_vlabel number of underruns/overruns during last ${{graph_period}}
+graph_category dabmux
+graph_info This graph shows the number of under/overruns for the {ident} ZMQ input
+
underruns.info Number of underruns
underruns.label Number of underruns
underruns.min 0
@@ -87,10 +91,10 @@ elif len(sys.argv) == 2 and sys.argv[1] == "config":
config = json.loads(sock.recv(256))
- munin_config = config_template_top.format(title="dabmux ZMQ input buffers")
+ munin_config = ""
for conf in config['config']:
- munin_config += config_template_individual.format(ident=get_id_from_uri(conf))
+ munin_config += config_template.format(ident=get_id_from_uri(conf))
print(munin_config)