diff options
| author | zhangzhihan <[email protected]> | 2020-09-04 10:55:01 +0800 |
|---|---|---|
| committer | zhangzhihan <[email protected]> | 2020-09-04 10:55:01 +0800 |
| commit | e088bc922bb6a56c05114f234097e2de3c92a785 (patch) | |
| tree | 0432e685388d03996a7e06d5080af2bfbbda1da4 | |
| parent | 845a73e69ff8e4268f98cae5977460e693f1d64a (diff) | |
update
| -rwxr-xr-x | roles/telegraf_statistic/templates/telegraf_statistic.conf.j2 | 4 |
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]] |
