]> git.0d.be Git - django-panik-nonstop.git/blob - nonstop/templates/nonstop/munin_tracks.txt
templates: add vlabel to munin graphs
[django-panik-nonstop.git] / nonstop / templates / nonstop / munin_tracks.txt
1 {% load l10n %}{% localize off %}
2 {% if view.kwargs.config %}
3 multigraph nonstop_general
4 graph_title Nonstop Tracks
5 graph_category Nonstop
6 graph_vlabel count
7 nonstop_general_total.label Total
8 nonstop_general_active.label Active
9
10 multigraph nonstop_percentages
11 graph_title Nonstop Tracks Percentages
12 graph_category Nonstop
13 graph_args --upper-limit 100 -l 0
14 graph_vlabel %
15 graph_scale no
16 nonstop_percentages_instru.label (%instru)
17 nonstop_percentages_cfwb.label (%cfwb)
18 nonstop_percentages_french.label (%french)
19 nonstop_percentages_langset.label (%language set)
20
21 {% for zone in zones %}
22 multigraph nonstop_{{zone.slug|cut:"-"}}
23 graph_title Nonstop Tracks ({{zone.title|safe}})
24 graph_category Nonstop
25 graph_vlabel count
26 nonstop_{{zone.slug|cut:"-"}}_total.label (total)
27 nonstop_{{zone.slug|cut:"-"}}_instru.label (instru)
28 nonstop_{{zone.slug|cut:"-"}}_cfwb.label (cfwb)
29 nonstop_{{zone.slug|cut:"-"}}_french.label (french)
30 nonstop_{{zone.slug|cut:"-"}}_langset.label (language set)
31 {% endfor %}
32
33 {% else %}{# actual stats #}
34
35 multigraph nonstop_general
36 nonstop_general_total.value {{nonstop_general_total}}
37 nonstop_general_active.value {{nonstop_general_active}}
38
39 multigraph nonstop_percentages
40 nonstop_percentages_instru.value {{nonstop_percentages_instru}}
41 nonstop_percentages_cfwb.value {{nonstop_percentages_cfwb}}
42 nonstop_percentages_french.value {{nonstop_percentages_french}}
43 nonstop_percentages_langset.value {{nonstop_percentages_langset}}
44
45 {% for zone in zones %}
46 multigraph nonstop_{{zone.slug|cut:"-"}}
47 nonstop_{{zone.slug|cut:"-"}}_total.value {{zone.stats.count}}
48 nonstop_{{zone.slug|cut:"-"}}_instru.value {{zone.stats.instru}}
49 nonstop_{{zone.slug|cut:"-"}}_cfwb.value {{zone.stats.cfwb}}
50 nonstop_{{zone.slug|cut:"-"}}_french.value {{zone.stats.french}}
51 nonstop_{{zone.slug|cut:"-"}}_langset.value {{zone.stats.language_set}}
52 {% endfor %}
53
54 {% endif %}
55 {% endlocalize %}