summaryrefslogtreecommitdiff
path: root/roles/monitoring/collectd/graphite/tasks/main.yml
blob: 15864b3024ac4e15f5e2637f5d6179a59bbf26b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
- name: install graphite plugin config
  copy:
    dest: /etc/collectd/conf.d/graphite.conf
    content: |
      LoadPlugin "write_graphite"

      <Plugin "write_graphite">
      {% for name, config in collectd_graphite_nodes.items() %}
        <Node "{{ name }}">
          {{ config | indent(width=4) }}
        </Node>
      {% endfor %}
      </Plugin>
  notify: restart collectd