I'm following the datadog guide here: https://docs.datadoghq.com/database_monitoring/setup_postgres/aurora/?tab=docker
which says to run this docker command:
docker run -e "DD_API_KEY=${DD_API_KEY}" \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-l com.datadoghq.ad.check_names='["postgres"]' \
-l com.datadoghq.ad.init_configs='[{}]' \
-l com.datadoghq.ad.instances='[{
"dbm": true,
"host": "<AWS_INSTANCE_ENDPOINT>",
"port": 5432,
"username": "datadog",
"password": "<UNIQUEPASSWORD>"
}]' \
gcr.io/datadoghq/agent:${DD_AGENT_VERSION}
That's all well and good, the labels are easy to configure; what's not clear to me is how to set the task definition for the volume (ideally in the console)
I'm not sure how to translate -v /var/run/docker.sock:/var/run/docker.sock:ro
into these inputs:
I currently have this in my Dockerfile
(but I think that's only part of the solution - and potentially incorrect):
VOLUME ["/var/run/docker.sock:/var/run/docker.sock:ro"]