From f79162841bac59fa8a0d758a7b1025dd7a161d4a Mon Sep 17 00:00:00 2001 From: badrogger Date: Thu, 18 Apr 2024 14:59:56 +0000 Subject: [PATCH] Add telegraf config structure --- telegraf.conf.j2 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/telegraf.conf.j2 b/telegraf.conf.j2 index eed770fb..7e259e36 100644 --- a/telegraf.conf.j2 +++ b/telegraf.conf.j2 @@ -37,9 +37,7 @@ urls = ["http://localhost:3009/nginx-status"] response_timeout = "5s" -[[outputs.influxdb_v2]] - alias = "influx" +[[outputs.influxdb]] + alias = "vm" urls = ["{{ url }}"] - bucket = "{{ bucket }}" - organization = "{{ org }}" - token = "{{ token }}" + http_headers = {"Authorization" = "Bearer {{ token }}"}