diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-04-25 11:39:21 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-04-25 11:39:21 +0200 |
commit | 9f57549a48c7a61c894e0ae9c7911d4d0ee8f1be (patch) | |
tree | 2c4f390786b9366dcbbc7802338ba59845f9605a /doc | |
parent | 450300013cdcc34570365832b31024959e19b107 (diff) | |
download | dabmux-9f57549a48c7a61c894e0ae9c7911d4d0ee8f1be.tar.gz dabmux-9f57549a48c7a61c894e0ae9c7911d4d0ee8f1be.tar.bz2 dabmux-9f57549a48c7a61c894e0ae9c7911d4d0ee8f1be.zip |
Add audio level to munin script
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/stats_dabmux_multi.py | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/doc/stats_dabmux_multi.py b/doc/stats_dabmux_multi.py index edb60f5..4bfba09 100755 --- a/doc/stats_dabmux_multi.py +++ b/doc/stats_dabmux_multi.py @@ -15,7 +15,6 @@ config_top = """ config_template = """ multigraph buffers_{ident} - graph_title Contribution {ident} buffer graph_order high low graph_args --base 1000 @@ -48,6 +47,23 @@ overruns.info Number of overruns overruns.label Number of overruns overruns.min 0 overruns.warning 0:0 + +multigraph audio_levels_{ident} +graph_title Contribution {ident} audio level (peak) +graph_order left right +graph_args --base 1 +graph_vlabel peak audio level during last ${{graph_period}} +graph_category dabmux +graph_info This graph shows the audio level of both channels of the {ident} ZMQ input + +left.info Left channel audio level +left.label Left channel audio level +left.min -90 +left.warning -90:-90 +right.info Right channel audio level +right.label Right channel audio level +right.min -90 +right.warning -90:-90 """ if not os.environ.get("MUNIN_CAP_MULTIGRAPH"): @@ -84,6 +100,8 @@ if len(sys.argv) == 1: munin_values += "multigraph over_underruns_{ident}\n".format(ident=ident) munin_values += "underruns.value {}\n".format(v['num_underruns']) munin_values += "overruns.value {}\n".format(v['num_overruns']) + munin_values += "left.value {}\n".format(v['peak_left']) + munin_values += "right.value {}\n".format(v['peak_right']) print(munin_values) |