summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdoc/stats_dabmux_multi.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/stats_dabmux_multi.py b/doc/stats_dabmux_multi.py
index 16e65e9..bd90dce 100755
--- a/doc/stats_dabmux_multi.py
+++ b/doc/stats_dabmux_multi.py
@@ -8,6 +8,11 @@ import json
import socket
import os
+config_top = """
+multigraph zmq_inbuf
+graph_category dabux
+"""
+
config_template = """
multigraph zmq_inbuf.id_{ident}
@@ -91,7 +96,7 @@ elif len(sys.argv) == 2 and sys.argv[1] == "config":
config = json.loads(sock.recv(256))
- munin_config = ""
+ munin_config = config_top
for conf in config['config']:
munin_config += config_template.format(ident=get_id_from_uri(conf))