Browse Source

Add support for Telegraf

Change-Id: Iec2d27cc4fdab9ba7772e9c26be66ba54f5aadfc
Depends-On: Ice4f38abfb0d870c56763dfeda2140032fa752a1
pull/26/merge
Simon Pasquier 7 years ago
parent
commit
b4595b9602
2 changed files with 20 additions and 0 deletions
  1. +18
    -0
      galera/meta/telegraf.yml
  2. +2
    -0
      metadata/service/support.yml

+ 18
- 0
galera/meta/telegraf.yml View File

{%- if pillar.galera is defined %}
{%- if pillar.galera.master is defined %}
{%- from "galera/map.jinja" import master with context %}
{%- set server = master %}
{%- elif pillar.galera.slave is defined %}
{%- from "galera/map.jinja" import slave with context %}
{%- set server = slave %}
{%- endif %}
{%- endif %}

{%- if server is defined %}
agent:
input:
mysql:
address: {{ server.socket }}
username: {{ server.admin.user }}
password: {{ server.admin.password }}
{%- endif %}

+ 2
- 0
metadata/service/support.yml View File

enabled: true enabled: true
grafana: grafana:
enabled: true enabled: true
telegraf:
enabled: true

Loading…
Cancel
Save