From 4145c555223aeb263da2b63a079448781a3ccab0 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Thu, 19 Jun 2025 12:33:36 -0500 Subject: [PATCH] using tls for telegraf --- telegraf/telegraf.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/telegraf/telegraf.conf b/telegraf/telegraf.conf index eb6153b..84fa5cc 100644 --- a/telegraf/telegraf.conf +++ b/telegraf/telegraf.conf @@ -80,7 +80,9 @@ ## Multiple URLs can be specified for a single cluster, only ONE of the ## urls will be written to each interval. ## ex: urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"] - urls = ["http://${INFLUX_HOST:-influxdb}:8086"] + urls = ["https://influxdb.john-stream.com"] + tls_enable = true + tls_server_name = "influxdb.john-stream.com" ## Token for authentication. token = "$INFLUX_WRITE_TOKEN" @@ -103,7 +105,6 @@ ## Additional HTTP headers # http_headers = {"X-Special-Header" = "Special-Value"} - ## HTTP Proxy override, if unset values the standard proxy environment ## variables are consulted to determine which proxy, if any, should be used. # http_proxy = "http://corporate.proxy:3128"