**DEPRECATED** Dataloop Docker Autodiscovery Container
10M+
The dataloop-docker container has now been deprecated in favour of outlyer\agent
Please see outlyer\agent for installation instructions to monitor Docker containers with Outlyer (formally Dataloop)
This container contains a Dataloop agent and some magic scripts that create virtual agents in Dataloop for each running container. Depending on which OS you are running on your Docker hosts you may need to add different run options.
This container builds on dataloop/agent-base where further options to pass to the container can be found.
The list of metrics returned for each running containers can be found here.
DATALOOP_AGENT_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
DATALOOP_NAME=docker_container_name
docker run -d \
-e "DATALOOP_AGENT_KEY=${DATALOOP_AGENT_KEY}" \
-e "DATALOOP_NAME=${DATALOOP_NAME}" \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v /proc:/rootfs/proc:ro \
-v /sys/fs/cgroup:/rootfs/sys/fs/cgroup:ro \
dataloop/dataloop-docker:latest
If using an Amazon Linux AMI you will need to change the /cgroup volume mount location
DATALOOP_AGENT_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
DATALOOP_NAME=docker_container_name
docker run -d \
-e "DATALOOP_AGENT_KEY=${DATALOOP_AGENT_KEY}" \
-e "DATALOOP_NAME=${DATALOOP_NAME}" \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v /proc:/rootfs/proc:ro \
-v /cgroup:/rootfs/sys/fs/cgroup:ro \
dataloop/dataloop-docker:latest
CentOS 6 supports Docker to version 1.7, whereat the platform appears to have been deprecated.
You can still run this container, if you install cgroups and adjust the volume mapping for the cgroups directory.
sudo yum install -y libcgroup
CentOS 6 has cgroups under /cgroups. Run the container accordingly
DATALOOP_AGENT_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
DATALOOP_NAME=docker_container_name
docker run -d \
-e "DATALOOP_AGENT_KEY=${DATALOOP_AGENT_KEY}" \
-e "DATALOOP_NAME=${DATALOOP_NAME}" \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v /proc:/rootfs/proc:ro \
-v /cgroup:/rootfs/sys/fs/cgroup:ro \
dataloop/dataloop-docker:latest
This container has been tested to run on Docker >= 1.7
Please contact us on https://slack.outlyer.com or support[at]outlyer.com for help.
If you dont see any memory metrics in your containers you will need to enable memory accounting in cgroups. To do that just add some kernel command-line parameters: cgroup_enable=memory swapaccount=1. More info from the docker documentation.
If you are behind a proxy server, you can pass the standard proxy environment variables to the docker container to have data passed through:
docker run -e HTTP_PROXY=http://proxy:port....
If you want to modify the container then feel free to submit a pull request. Below is the spec for what each script does.
A set of independent foreground processes that log to standard out that can be run under a s6-svc
All state is stored in Dataloop so these scripts can be run in ephemeral containers with no local storage.
Polls Docker api and Dataloop. Ensures containers match agents via register and deregister API's. Tag containers with relevant info taken from various places. Send a ping metric for each running containers.
Sends docker metrics to Dataloop via the Graphite endpoint every 30 seconds by matching container ID to agent name.
Content type
Image
Digest
sha256:3f744dd2c…
Size
139.9 MB
Last updated
over 9 years ago
docker pull dataloop/dataloop-docker