summaryrefslogtreecommitdiff
path: root/roles/monitoring/collectd/graphite/tasks/main.yml
blob: 56bae017f65f194bb42f13340c799207e3a23719 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- name: install graphite plugin config
  copy:
    dest: /etc/collectd/conf.d/graphite.conf
    content: |
      LoadPlugin "write_graphite"
      <Plugin "write_graphite">
      {% for node in (collectd_graphite_nodes | dict2items) %}
        <Node "{{ node.key }}">
          {{ node.value | indent(width=4) }}
        </Node>
      {% endfor %}
      </Plugin>
  notify: restart collectd