I just deploy in my docker swarm (with caddy in reverseproxy role) and all is OK.
thanks to this guy : Grafana 8 - InfluxDB 2 - Telegraf - 2021 monitoring stack
It was very helpful.
Anyway, I have two questions.
1st question/ in my telegraf.conf for connect to influxdbv2 i must put my VIP ( delivered via keepalived container). http://192.168.0.41:8086
If i want to use container name like influxdb:8086 or the ingress ip like 172.17.0.1:8086 it doesn’t work. Dunno why. BTW the ingress ip is uses in my caddyfile with success.
2nd question/ when i browse my data in influxdb telegraf show servers id instead of servers hostname.
Maybe you have a tricks for this.
Thanks in advance,