summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfumingwei <[email protected]>2020-10-17 13:59:56 +0800
committerfumingwei <[email protected]>2020-10-17 13:59:56 +0800
commit3fdae02a52585c89390da66ae30a5e39fbcbc3e8 (patch)
treeab60420bf6821d6a8d9aa309702f32228dc1ed60
parentf0725b0e02d7a28ada14fed06a415a2617f053b5 (diff)
1、增加telegraf collect 部署 2、修改telegrafaf 配置文件
-rw-r--r--deploy.yml2
-rw-r--r--roles/telegraf_collect/templates/telegraf_collect.conf.j22
-rwxr-xr-xroles/telegraf_statistic/templates/telegraf_statistic.conf.j22
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