Recently, was looking into tick stack, seems that no matter how I proxied influxdbv2 to nginx proxy from localhost:8086 to see the UI/UX . We receive the following if we use the default telegraf onboarding.
I have checked the notes, thats about a time out, that is not the case here, while the https:// version of the site behind nginx proxy works with lets encrypt without issues.
Once I have tried insecure_skip_verify, I will get another error:
2021-02-18T20:33:48Z I! Starting Telegraf 1.17.2
2021-02-18T20:33:48Z I! Using config file: /etc/telegraf/telegraf.conf
2021-02-18T20:33:48Z E! [telegraf] Error running agent: Error loading config file /etc/telegraf/telegraf.conf: Error parsing data: line 804: key `insecure_skip_verify' is in conflict with line a3d
When I revert to normal, will get:
2021-02-18T20:37:28Z E! [telegraf] Error running agent: Error loading config file /etc/telegraf/telegraf.conf: plugin outputs.influxdb_v2: line 105: configuration specified the fields ["database" "username" "password"], but they weren't used
What happens if you try to download the config file from the machine running Telegraf with curl or wget? Does that work?
Edit: Forget it, i tried this with my InfluxDB Cloud, curl does not work here, you need the INFLUX_TOKEN as well to get access to the remote config file…
I have switched back to version 1, and just testing a new stack, now facing completely new issue thats even more weirder, where the port allocation is not working, while is not even used:
[centos@apa docker-tick-stack-grafana]$ docker-compose up -d
WARNING: The Docker Engine you're using is running in swarm mode.
Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the current node.
To deploy your application across the swarm, use `docker stack deploy`.
influxdb is up-to-date
kapacitor1 is up-to-date
Creating grafana ...
Creating influxdb-cli ...
Creating telegraf ...
Creating telegraf ... error
Creating grafana ... done
Creating influxdb-cli ... done
Creating kapacitor ... done
Creating chronograf ... done
ERROR: for telegraf Cannot start service telegraf: driver failed programming external connectivity on endpoint telegraf (cd975c226b369da09c0508fc540e9ec3f6edef331593b5d8e259dbff237194fc): Bind for 0.0.0.0:8125 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.
[centos@apa docker-tick-stack-grafana]$ netstat -natr | grep 8125
[centos@apa docker-tick-stack-grafana]$ sudo lsof -i -P -n | grep 8125
[centos@apa docker-tick-stack-grafana]$ netstat | grep 8125