Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Only default Enabled if Docker socket is connectable. #55

Merged
merged 1 commit into from
Sep 7, 2017

Conversation

conorbranagan
Copy link
Contributor

There are cases where folks are running the containerized Agent but
don't mount the docker.sock file so we end up in a crash loop like:

2017-09-04 07:47:18 ERROR (ecs.go:26) - unable to configure ECS metada collection: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2017-09-04 07:47:20 ERROR (ecs.go:26) - unable to configure ECS metada collection: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2017-09-04 07:47:20 INFO (collector.go:106) - Starting process-agent for host=XXXX, endpoint=https://process.datadoghq.com
2017-09-04 07:47:22 ERROR (ecs.go:26) - unable to configure ECS metada collection: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2017-09-04 07:47:22 INFO (collector.go:106) - Starting process-agent for host=XXXX, endpoint=https://process.datadoghq.com
2017-09-04 07:47:26 ERROR (ecs.go:26) - unable to configure ECS metada collection: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2017-09-04 07:47:26 INFO (collector.go:106) - Starting process-agent for host=XXXX, endpoint=https://process.datadoghq.com

There are cases where folks are running the containerized Agent but
don't mount the docker.sock file so we end up in a crash loop like:

```
2017-09-04 07:47:18 ERROR (ecs.go:26) - unable to configure ECS metada collection: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2017-09-04 07:47:20 ERROR (ecs.go:26) - unable to configure ECS metada collection: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2017-09-04 07:47:20 INFO (collector.go:106) - Starting process-agent for host=XXXX, endpoint=https://process.datadoghq.com
2017-09-04 07:47:22 ERROR (ecs.go:26) - unable to configure ECS metada collection: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2017-09-04 07:47:22 INFO (collector.go:106) - Starting process-agent for host=XXXX, endpoint=https://process.datadoghq.com
2017-09-04 07:47:26 ERROR (ecs.go:26) - unable to configure ECS metada collection: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2017-09-04 07:47:26 INFO (collector.go:106) - Starting process-agent for host=XXXX, endpoint=https://process.datadoghq.com
```
@conorbranagan conorbranagan merged commit cc8f522 into master Sep 7, 2017
@conorbranagan conorbranagan deleted the conor/default-enabled branch September 7, 2017 18:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant