diff options
| author | fumingwei <[email protected]> | 2020-10-17 13:59:56 +0800 |
|---|---|---|
| committer | fumingwei <[email protected]> | 2020-10-17 13:59:56 +0800 |
| commit | 3fdae02a52585c89390da66ae30a5e39fbcbc3e8 (patch) | |
| tree | ab60420bf6821d6a8d9aa309702f32228dc1ed60 | |
| parent | f0725b0e02d7a28ada14fed06a415a2617f053b5 (diff) | |
1、增加telegraf collect 部署 2、修改telegrafaf 配置文件
| -rw-r--r-- | deploy.yml | 2 | ||||
| -rw-r--r-- | roles/telegraf_collect/templates/telegraf_collect.conf.j2 | 2 | ||||
| -rwxr-xr-x | roles/telegraf_statistic/templates/telegraf_statistic.conf.j2 | 2 |
3 files changed, 4 insertions, 2 deletions
@@ -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 |
