Skip to content

Commit 4e84e87

Browse files
committed
Generate Munin graphs for the new LVS pools
1 parent c741c1e commit 4e84e87

File tree

1 file changed

+23
-6
lines changed
  • ansible/roles/lvs-munin-node/tasks

1 file changed

+23
-6
lines changed

ansible/roles/lvs-munin-node/tasks/main.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,32 @@
1313
with_items:
1414
- 2
1515
- 3
16+
- 21
17+
- 22
18+
- 23
19+
- 31
20+
- 32
21+
- 33
22+
- 92
1623
notify: restart munin-node
1724
- name: Configure munin cps plugin
25+
vars:
26+
fwmarks:
27+
1: miscellaneous
28+
2: Apache
29+
3: SMTP
30+
21: Fedora 20 primary
31+
22: Fedora 20 Apache
32+
23: Fedora 20 SMTP
33+
31: Fedora 30 primary
34+
32: Fedora 30 Apache
35+
33: Fedora 30 SMTP
36+
92: scripts-test Apache
1837
copy:
1938
dest: /etc/munin/plugin-conf.d/cps
2039
content: |
21-
[cps_1_0]
22-
env.graph_title Load balanced miscellaneous connections
23-
[cps_2_0]
24-
env.graph_title Load balanced Apache connections
25-
[cps_3_0]
26-
env.graph_title Load balanced SMTP connections
40+
{% for fwmark, desc in fwmarks | dictsort %}
41+
[cps_{{ fwmark }}_0]
42+
env.graph_title Load balanced {{desc}} connections
43+
{% endfor %}
2744
notify: restart munin-node

0 commit comments

Comments
 (0)