influxdata / influxdata/influxdb
Question: Collect docker metrics from remote docker host
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
Hello,
I would like to collect docker metrics on my local device from a docker engine which is running on a remote device.
Does anyone know how to use the [inputs.docker] plugin in telegraf with tcp endpoint?
What do I need to set up/configure on the docker daemon from the remote deivce and what do I need to set up/configure on the device from where I want to collect the data? Telegraf will be running in a docker container.
I have tried to set the ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2375 in the docker.service file for systemd as described in https://docs.docker.com/engine/reference/commandline/dockerd/ it is not working.
Can someone help?
Contributor guide
Research direction
Start with the inputs.docker plugin configuration and the Docker daemon command shown in the issue. Check the referenced Docker daemon documentation and determine how the remote TCP endpoint and the Telegraf container should be configured. Done means a supported configuration is identified and remote Docker metrics can be collected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100