I’m new to this so I’m sorry if this is a trivial question.
I’m having issues in the first configuration of influxDB v2.0 with telegraf on two separate container.
The containers are linked to the same network, the whole set-up is specified in a docker-compose file.
I go through the credential set-up in the browser and in -> Data -> Telegraf I create a new configuration to get the telegraf token. Once I have the token I do
export INFLUX_TOKEN=“token”
in the telegraf container bash and I try
telegraf --config “link API”
but i get the following error
[telegraf] Error running agent: Error loading config file http://localhost:8086/api/v2/telegrafs/06e759e9a4784000: Get “http://localhost:8086/api/v2/telegrafs/06e759e9a4784000”: dial tcp 127.0.0.1:8086: connect: connection refused
What is wrong here? I tried to go through the documentation but I really don’t understand, any help is appreciated.