forked from evolix/ansible-roles
haproxy: add Munin graphes
This commit is contained in:
parent
097f732922
commit
2727a6dfa1
|
@ -1,3 +1,3 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
haproxy_jessie_backports: False
|
haproxy_jessie_backports: False
|
||||||
|
haproxy_stats_url: "http://127.0.0.1:8080/"
|
||||||
|
|
|
@ -8,3 +8,8 @@
|
||||||
service:
|
service:
|
||||||
name: haproxy
|
name: haproxy
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
- name: restart munin-node
|
||||||
|
service:
|
||||||
|
name: munin-node
|
||||||
|
state: restarted
|
||||||
|
|
|
@ -34,3 +34,4 @@
|
||||||
- config
|
- config
|
||||||
|
|
||||||
- include: nagios.yml
|
- include: nagios.yml
|
||||||
|
- include: munin.yml
|
||||||
|
|
18
haproxy/tasks/munin.yml
Normal file
18
haproxy/tasks/munin.yml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
- name: Enable Munin Haproxy plugins
|
||||||
|
file:
|
||||||
|
src: /usr/share/munin/plugins/haproxy_ng
|
||||||
|
dest: /etc/munin/plugins/haproxy_ng
|
||||||
|
state: link
|
||||||
|
notify: restart munin-node
|
||||||
|
tags:
|
||||||
|
- haproxy
|
||||||
|
|
||||||
|
- name: Copy Munin Haproxy config
|
||||||
|
template:
|
||||||
|
src: munin.conf.j2
|
||||||
|
dest: /etc/munin/plugin-conf.d/haproxy
|
||||||
|
mode: "0644"
|
||||||
|
notify: restart munin-node
|
||||||
|
tags:
|
||||||
|
- haproxy
|
2
haproxy/templates/munin.conf.j2
Normal file
2
haproxy/templates/munin.conf.j2
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[haproxy_*]
|
||||||
|
env.url {{ haproxy_stats_url }};csv;norefresh
|
Loading…
Reference in a new issue