Sfoglia il codice sorgente

Add support for Telegraf

Change-Id: Iec2d27cc4fdab9ba7772e9c26be66ba54f5aadfc
Depends-On: Ice4f38abfb0d870c56763dfeda2140032fa752a1
revert-bumpto57-2
Simon Pasquier 7 anni fa
parent
commit
b4595b9602
2 ha cambiato i file con 20 aggiunte e 0 eliminazioni
  1. +18
    -0
      galera/meta/telegraf.yml
  2. +2
    -0
      metadata/service/support.yml

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

@@ -0,0 +1,18 @@
{%- 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 Vedi File

@@ -13,3 +13,5 @@ parameters:
enabled: true
grafana:
enabled: true
telegraf:
enabled: true

Loading…
Annulla
Salva