From 3fdae02a52585c89390da66ae30a5e39fbcbc3e8 Mon Sep 17 00:00:00 2001 From: fumingwei Date: Sat, 17 Oct 2020 13:59:56 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=A2=9E=E5=8A=A0telegraf=20collect?= =?UTF-8?q?=20=E9=83=A8=E7=BD=B2=202=E3=80=81=E4=BF=AE=E6=94=B9telegrafaf?= =?UTF-8?q?=20=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.yml | 2 ++ roles/telegraf_collect/templates/telegraf_collect.conf.j2 | 2 +- roles/telegraf_statistic/templates/telegraf_statistic.conf.j2 | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/deploy.yml b/deploy.yml index e8dd304..3b8738e 100644 --- a/deploy.yml +++ b/deploy.yml @@ -9,6 +9,7 @@ roles: - framework - kernel-ml + - telegraf_collect - hosts: adc_mxn remote_user: root @@ -114,6 +115,7 @@ - cert-redis - tfe - telegraf_statistic + - telegraf_collect - proxy_status # - tsg_device_tag - reboot diff --git a/roles/telegraf_collect/templates/telegraf_collect.conf.j2 b/roles/telegraf_collect/templates/telegraf_collect.conf.j2 index 56f2734..0eb75f5 100644 --- a/roles/telegraf_collect/templates/telegraf_collect.conf.j2 +++ b/roles/telegraf_collect/templates/telegraf_collect.conf.j2 @@ -1,5 +1,5 @@ [global_tags] - blade = {{bladename}} + blade = "{{bladename}}" [agent] interval = "5s" round_interval = true diff --git a/roles/telegraf_statistic/templates/telegraf_statistic.conf.j2 b/roles/telegraf_statistic/templates/telegraf_statistic.conf.j2 index e2d040b..561e97f 100755 --- a/roles/telegraf_statistic/templates/telegraf_statistic.conf.j2 +++ b/roles/telegraf_statistic/templates/telegraf_statistic.conf.j2 @@ -56,4 +56,4 @@ [[outputs.influxdb]] urls = ["{{ monitor_outputs_influxdb.url }}"] - database = "tsg_stat \ No newline at end of file + database = "tsg_stat" \ No newline at end of file