Unable to get disk metrics for /host/proc/sys/fs/binfmt_misc
Output of the info page (if this is a bug)
Name: datadog-agent
Selector: app=datadog-agent
Node-Selector: <none>
Labels: app=datadog-agent
Annotations: deprecated.daemonset.template.generation: 3
kubectl.kubernetes.io/last-applied-configuration:
{"apiVersion":"extensions/v1beta1","kind":"DaemonSet","metadata":{"annotations":{},"name":"datadog-agent","namespace":"datadog-agent"},"sp...
Desired Number of Nodes Scheduled: 8
Current Number of Nodes Scheduled: 8
Number of Nodes Scheduled with Up-to-date Pods: 8
Number of Nodes Scheduled with Available Pods: 8
Number of Nodes Misscheduled: 0
Pods Status: 8 Running / 0 Waiting / 0 Succeeded / 0 Failed
Pod Template:
Labels: app=datadog-agent
Service Account: datadog-agent
Containers:
datadog-agent:
Image: datadog/agent:latest
Ports: 8125/UDP, 8126/TCP
Host Ports: 8125/UDP, 8126/TCP
Limits:
cpu: 200m
memory: 256Mi
Requests:
cpu: 200m
memory: 256Mi
Liveness: exec [./probe.sh] delay=15s timeout=1s period=5s #success=1 #failure=3
Environment:
DD_AGENT_HOST: (v1:status.hostIP)
DD_API_KEY: <set to the key 'api-key' in secret 'datadog-secret'> Optional: false
DD_APM_ENABLED: true
DD_APM_NON_LOCAL_TRAFFIC: true
KUBERNETES: true
DD_KUBERNETES_KUBELET_HOST: (v1:status.hostIP)
KUBERNETES_NODENAME: (v1:spec.nodeName)
DD_HOSTNAME: prod-us-$(KUBERNETES_NODENAME)
DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL: true
DD_LOGS_ENABLED: true
DD_KUBERNETES_POD_LABELS_AS_TAGS: {"app":"app","version":"version","jobType":"jobType"}
DD_TAGS: environment:prod-us
DD_DOGSTATSD_NON_LOCAL_TRAFFIC: true
Mounts:
/host/proc from procdir (ro)
/host/sys/fs/cgroup from cgroups (ro)
/opt/datadog-agent/run from pointerdir (rw)
/var/run/docker.sock from dockersocket (rw)
Volumes:
dockersocket:
Type: HostPath (bare host directory volume)
Path: /var/run/docker.sock
HostPathType:
procdir:
Type: HostPath (bare host directory volume)
Path: /proc
HostPathType:
cgroups:
Type: HostPath (bare host directory volume)
Path: /sys/fs/cgroup
HostPathType:
pointerdir:
Type: HostPath (bare host directory volume)
Path: /opt/datadog-agent/run
HostPathType:
Describe what happened: All of a sudden I see the warning below for datadog agents on all nodes:
2019-08-20 10:54:34 UTC | CORE | WARN | (pkg/collector/python/datadog_agent.go:108 in LogMessage) | (disk.py:92) | Unable to get disk metrics for /host/proc/sys/fs/binfmt_misc: [Errno 40] Too many levels of symbolic links: '/host/proc/sys/fs/binfmt_misc'
Describe what you expected: For it to work correctly
Steps to reproduce the issue: None, they just appeared. Haven't changed a thing.
Additional environment details (Operating System, Cloud provider, etc): Azure AKS - v1.13.9 When I delete a pod so it forces to start a new one (run as daemon set) it works fine again.
Pods are running for 6 days now. Some pods have had restarts but they also have the issue. So only a delete of the pod "solves" the issue.
anyone?
Hi @bramvdklinkenberg
This issue has been reported already and the solution has been provided by @xlucas here: https://github.com/DataDog/datadog-agent/issues/3329#issuecomment-492030202
Feel free to jump on this thread if needed, but excluding the disk is the best approach.
Thanks