telegraf: Telegraf can't retrieve remote config file
Relevant telegraf.conf
[agent]
interval = "20s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
hostname = ""
omit_hostname = false
[[outputs.influxdb_v2]]
urls = ["${INFLUX_URL}"]
token = "${INFLUX_TOKEN}"
organization = "${INFLUX_ORG}"
bucket = "${INFLUX_BUCKET}"
[[inputs.http_listener_v2]]
service_address = ":8094"
methods = ["POST", "PUT","GET"]
data_format = "influx"
Logs from Telegraf
2022-10-23T07:04:28Z I! Error getting HTTP config. Retry 0 of 3 in 10s. Status=400
2022-10-23T07:04:38Z I! Error getting HTTP config. Retry 1 of 3 in 10s. Status=400
2022-10-23T07:04:48Z I! Error getting HTTP config. Retry 2 of 3 in 10s. Status=400
2022-10-23T07:04:58Z E! [telegraf] Error running agent: Error loading config file https://influxdb-versatile.s3.us-east-2.amazonaws.com/telegraf/staging/telegraf.conf: Retry 3 of 3 failed to retrieve remote config: 400 Bad Request
System info
Amazon Linux 2
Docker
official docker image (v 1.22)
Steps to reproduce
(file is currently public - was like this when got error logs)
according to Docs you can specify a remote URL
run docker run telegraf --config https://influxdb-versatile.s3.us-east-2.amazonaws.com/telegraf/staging/telegraf.conf
(with needed environment variables)
Expected behavior
That agent would start and listen on asked port (8094
for instance)
Actual behavior
Agent crushes and fails to start (due to not being able to fetch the config file)
Additional info
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (8 by maintainers)
Hello! I am closing this issue due to inactivity. I hope you were able to resolve your problem, if not please try posting this question in our Community Slack or Community Page. Thank you!