浏览代码

Add support for Telegraf

Change-Id: Iec2d27cc4fdab9ba7772e9c26be66ba54f5aadfc
Depends-On: Ice4f38abfb0d870c56763dfeda2140032fa752a1
pull/26/merge
Simon Pasquier 7 年前
父节点
当前提交
b4595b9602
共有 2 个文件被更改,包括 20 次插入0 次删除
  1. +18
    -0
      galera/meta/telegraf.yml
  2. +2
    -0
      metadata/service/support.yml

+ 18
- 0
galera/meta/telegraf.yml 查看文件

@@ -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 查看文件

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

正在加载...
取消
保存