haproxy: add Munin graphes

This commit is contained in:
Victor LABORIE 2018-02-13 16:35:55 +01:00
parent 097f732922
commit 2727a6dfa1
5 changed files with 27 additions and 1 deletions

View File

@ -1,3 +1,3 @@
---
haproxy_jessie_backports: False
haproxy_stats_url: "http://127.0.0.1:8080/"

View File

@ -8,3 +8,8 @@
service:
name: haproxy
state: restarted
- name: restart munin-node
service:
name: munin-node
state: restarted

View File

@ -34,3 +34,4 @@
- config
- include: nagios.yml
- include: munin.yml

18
haproxy/tasks/munin.yml Normal file
View 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

View File

@ -0,0 +1,2 @@
[haproxy_*]
env.url {{ haproxy_stats_url }};csv;norefresh