-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Datadog container erroring out trying to connect to some redis server #13828
Comments
This looks like it's trying to run the redis integration and failing due to some misconfiguration, are you running any |
Nope, not at all |
Simple |
Could you provide the output of These two logs you have posted are trying to run two checks, one called |
I think I had a stale redis container, which the datadog was trying to track as well. I modified my datadog service to explicitly track only a selected container & ignore the rest - datadog:
container_name: dd-agent
image: gcr.io/datadoghq/agent:7
restart: always
ports:
- 8125:8125/udp
- 8126:8126
environment:
- DD_API_KEY=${DATADOG_API_KEY}
- DD_SITE=${DD_SITE}
- DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true
- DD_LOGS_ENABLED=true
- DD_APM_ENABLED=true
- DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL=true
# exclude all containers from autodiscovery
- DD_CONTAINER_EXCLUDE = "name:.*"
# track only below containers
- DD_CONTAINER_INCLUDE="name:my_application"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /proc/:/host/proc/:ro
# - /opt/dd-agent/run:/opt/dd-agent/run:rw
- /sys/fs/cgroup/:/host/sys/fs/cgroup:ro |
Is there any update for this error? docker command: export DD_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export DD_AGENT_VERSION=7.36.1
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='["mysql"]' \
-l com.datadoghq.ad.init_configs='[{}]' \
-l com.datadoghq.ad.instances='[{
"dbm": true,
"host": "<AWS_INSTANCE_ENDPOINT>",
"port": 3306,
"username": "datadog",
"password": "<UNIQUEPASSWORD>"
}]' \
gcr.io/datadoghq/agent:${DD_AGENT_VERSION} errors:
|
I am also getting the same error |
Agent Environment
Describe what happened
I am running the datadog container as one of the services in docker compose. I am running
Agent: 7
for my purposes.However running the datadog container runs into an error. The error log says that it's trying to connect to a redis server. I am not sure where is this coming from, as I don't recollect redis being one of the dependencies for datadog.
Pasted same log below for convenience -
Describe what you expected
For the container to boot up without any issues 🤷♂️
Steps to reproduce the issue
Just start a datadog container. It would fail
Additional environment details (Operating System, Cloud provider, etc)
The text was updated successfully, but these errors were encountered: