summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhangzhihan <[email protected]>2020-09-04 10:55:01 +0800
committerzhangzhihan <[email protected]>2020-09-04 10:55:01 +0800
commite088bc922bb6a56c05114f234097e2de3c92a785 (patch)
tree0432e685388d03996a7e06d5080af2bfbbda1da4
parent845a73e69ff8e4268f98cae5977460e693f1d64a (diff)
update
-rwxr-xr-xroles/telegraf_statistic/templates/telegraf_statistic.conf.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/telegraf_statistic/templates/telegraf_statistic.conf.j2 b/roles/telegraf_statistic/templates/telegraf_statistic.conf.j2
index 6585bf2..a70e941 100755
--- a/roles/telegraf_statistic/templates/telegraf_statistic.conf.j2
+++ b/roles/telegraf_statistic/templates/telegraf_statistic.conf.j2
@@ -1,6 +1,6 @@
[global_tags]
[agent]
- interval = "30s"
+ interval = "5s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
@@ -17,7 +17,7 @@
files = ["stdout", "/tmp/metrics.out"]
data_format = "json"
[[outputs.kafka]]
- brokers = ["192.168.40.186:9092"]
+ brokers = ["{{ log_kafkabrokers.address }}"]
topic = "TRAFFIC-METRICS-LOG"
data_format = "json"
[[outputs.prometheus_client]]