haproxy: add Munin graphes
parent
097f732922
commit
2727a6dfa1
|
@ -1,3 +1,3 @@
|
|||
---
|
||||
|
||||
haproxy_jessie_backports: False
|
||||
haproxy_stats_url: "http://127.0.0.1:8080/"
|
||||
|
|
|
@ -8,3 +8,8 @@
|
|||
service:
|
||||
name: haproxy
|
||||
state: restarted
|
||||
|
||||
- name: restart munin-node
|
||||
service:
|
||||
name: munin-node
|
||||
state: restarted
|
||||
|
|
|
@ -34,3 +34,4 @@
|
|||
- config
|
||||
|
||||
- include: nagios.yml
|
||||
- include: munin.yml
|
||||
|
|
|
@ -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
|
|
@ -0,0 +1,2 @@
|
|||
[haproxy_*]
|
||||
env.url {{ haproxy_stats_url }};csv;norefresh
|
Loading…
Reference in New Issue