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