-
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
Tagger error on Kubernetes #1037
Comments
Hey @macat, thanks for opening up this issue! To this extent, could you share with us:
Finally, would it be possible to open a ticket with our support team support@datadoghq.com with the aforementioned and a reference to this ticket ? Also, from the upcoming Best, |
I deployed the agent using daemonset. Configmap: apiVersion: v1
data:
datadog.api.key: oo
datadog.yaml: |
log_level: debug
log_enabled: true
listeners:
- name: docker
config_providers:
- name: kubelet
polling: true
docker_daemon.yaml: |
init_config:
docker_root: /host
logs:
- type: docker
image: "drone/agent:0.8.2"
service: drone
source: drone
- type: docker
image: "datadog/agent:6.0.0-beta.7"
servie: datadog
source: datadog
- type: file
path: /host/var/log/syslog
service: syslog
source: syslog DaemonSet: apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: dd-agent
spec:
template:
metadata:
labels:
app: dd-agent
name: dd-agent
spec:
containers:
- env:
- name: DD_API_KEY
valueFrom:
configMapKeyRef:
key: datadog.api.key
name: datadog
- name: KUBERNETES
value: "true"
- name: DD_LOG_ENABLED
value: "true"
image: datadog/agent:6.0.0-beta.7
imagePullPolicy: Always
name: dd-agent
ports:
- containerPort: 8125
name: dogstatsdport
protocol: UDP
resources:
limits:
cpu: 300m
memory: 512Mi
requests:
cpu: 100m
memory: 256Mi
volumeMounts:
- mountPath: /var/run/docker.sock
name: dockersocket
- mountPath: /host/proc
name: procdir
readOnly: true
- mountPath: /host/sys/fs/cgroup
name: cgroups
readOnly: true
- mountPath: /conf.d
name: datadog-config-volume
readOnly: true
- mountPath: /opt/datadog-agent/run
name: datadog-run
- mountPath: /host/var/log
name: varlog
volumes:
- hostPath:
path: /var/run/docker.sock
name: dockersocket
- hostPath:
path: /proc
name: procdir
- hostPath:
path: /sys/fs/cgroup
name: cgroups
- hostPath:
path: /opt/datadog-agent/run
name: datadog-run
- hostPath:
path: /var/log
name: varlog
- configMap:
items:
- key: docker_daemon.yaml
path: docker_daemon.yaml
- key: datadog.yaml
path: datadog.yaml
name: datadog
name: datadog-config-volume |
Log outputks logs dd-agent-dzhxw | grep "logs-agent\|tagger" 2018-01-11 19:42:27 UTC | INFO | (tagger.go:80 in Init) | starting the tagging system 2018-01-11 19:42:27 UTC | INFO | (tagger.go:153 in tryCollectors) | docker tag collector successfully started 2018-01-11 19:42:27 UTC | INFO | (tagger.go:153 in tryCollectors) | kubelet tag collector successfully started 2018-01-11 19:42:28 UTC | INFO | (autoconfig.go:458 in GetChecks) | Core Check Loader: successfully loaded check 'logs-agent' 2018-01-11 19:42:28 UTC | INFO | (logs-agent.go:75 in func1) | 1515699748494615972 [Debug] Unable to get the hostname from the config file: host name is empty 2018-01-11 19:42:28 UTC | INFO | (logs-agent.go:75 in func1) | 1515699748494641947 [Debug] Trying to determine a reliable host name automatically... 2018-01-11 19:42:28 UTC | INFO | (logs-agent.go:75 in func1) | 1515699748494646361 [Debug] GetHostname trying GCE metadata... 2018-01-11 19:42:28 UTC | INFO | (logs-agent.go:75 in func1) | 1515699748495565347 [Debug] Unable to get hostname from GCE: unable to retrieve hostname from GCE: status code 404 trying to GET http://169.254.169.254/computeMetadata/v1/instance/hostname 2018-01-11 19:42:28 UTC | INFO | (logs-agent.go:75 in func1) | 1515699748495580233 [Debug] GetHostname trying Docker API... 2018-01-11 19:42:28 UTC | INFO | (logs-agent.go:75 in func1) | 1515699748587468716 [Debug] GetHostname trying EC2 metadata... 2018-01-11 19:42:28 UTC | INFO | (logs-agent.go:75 in func1) | 1515699748589274044 [Debug] GetHostname trying EC2 metadata... 2018-01-11 19:42:28 UTC | INFO | (logs-agent.go:75 in func1) | Starting logs-agent 2018-01-11 19:42:28 UTC | INFO | (logs-agent.go:75 in func1) | Opening /host/var/log/syslog 2018-01-11 19:42:28 UTC | INFO | (logs-agent.go:75 in func1) | Can't tail file twice: /host/var/log/syslog 2018-01-11 19:42:28 UTC | INFO | (logs-agent.go:75 in func1) | Connecting to the backend: intake.logs.datadoghq.com:10516 2018-01-11 19:42:28 UTC | INFO | (logs-agent.go:75 in func1) | 1515699748992915488 [Info] starting the tagging system 2018-01-11 19:42:29 UTC | INFO | (logs-agent.go:75 in func1) | 1515699749290575132 [Info] kubelet tag collector successfully started 2018-01-11 19:42:29 UTC | INFO | (logs-agent.go:75 in func1) | 1515699749290600619 [Info] docker tag collector successfully started 2018-01-11 19:42:29 UTC | INFO | (logs-agent.go:75 in func1) | 1515699749293850318 [Debug] ecs tag collector cannot start: cannot find ECS agent 2018-01-11 19:42:29 UTC | INFO | (logs-agent.go:75 in func1) | 1515699749294009356 [Debug] candidate list empty, stopping detection 2018-01-11 19:42:29 UTC | INFO | (logs-agent.go:75 in func1) | 1515699749489652636 [Debug] found 7 changed pods out of 7, new resversion 72898050 2018-01-11 19:42:29 UTC | INFO | (logs-agent.go:75 in func1) | 1515699749489757180 [Debug] listener message: [%!s(*collectors.TagInfo=&{kubelet docker://348cbab3e08e3418e0e8a914ed0f0950a39f127e7a91fa013986cf5834fc8604 [pod_name:dd-agent-dzhxw] [kube_namespace:kube-system kube_container_name:dd-agent kube_daemon_set:dd-agent] false}) %!s(*collectors.TagInfo=&{kubelet docker://d1bf0d65b578b67679ed4f8467dbef7b5482f41f42737a124b6d6f20a21d7d70 [pod_name:nvml-metrics-4fk67] [kube_namespace:kube-system kube_container_name:nvml-metrics kube_daemon_set:nvml-metrics] false}) %!s(*collectors.TagInfo=&{kubelet docker://46f0dec114fe102b11980b4f7d05ba7bd307eed307f5df58173391ca2d22452d [pod_name:jssgen-99163c49-2fd2-4051-b667-368f63d8ba77] [kube_namespace:jobs kube_container_name:99163c49-2fd2-4051-b667-368f63d8ba77] false}) %!s(*collectors.TagInfo=&{kubelet docker://0a69de8e5a92532112079d3bf25c3b0162274e34d17bdd3e7b975cd1d016db5d [pod_name:research-1703865212-2mrqp kube_replica_set:research-1703865212] [kube_namespace:research kube_container_name:research kube_deployment:research] false}) %!s(*collectors.TagInfo=&{kubelet docker://5c99e50b93513832910e89dd02b39c0dde082f2221e8ce21063405edef64aa46 [kube_job:airtable-sync-1515698940 pod_name:airtable-sync-1515698940-n6kq7] [kube_namespace:warehouse kube_container_name:airtable] false}) %!s(*collectors.TagInfo=&{kubelet docker://f9855ed3fb8f9e371f9dd3c5f1ac905d8ff1de23a055cc0cab5308fa9f77ca6c [pod_name:filebeat-5ng5s] [kube_container_name:filebeat kube_daemon_set:filebeat kube_namespace:kube-system] false})] 2018-01-11 19:42:33 UTC | INFO | (logs-agent.go:75 in func1) | 1515699753496937454 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:42:33 UTC | INFO | (logs-agent.go:75 in func1) | 1515699753496953995 [Debug] listener message: [] 2018-01-11 19:42:38 UTC | INFO | (logs-agent.go:75 in func1) | 1515699758496681896 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:42:38 UTC | INFO | (logs-agent.go:75 in func1) | 1515699758496704813 [Debug] listener message: [] 2018-01-11 19:42:43 UTC | INFO | (logs-agent.go:75 in func1) | 1515699763497810529 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:42:43 UTC | INFO | (logs-agent.go:75 in func1) | 1515699763497833833 [Debug] listener message: [] 2018-01-11 19:42:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://9eeab2830e2a526a4c0ce52f52c97c40dc038b6978fd0675f912fce120ef652c not found in podlist 2018-01-11 19:42:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://3cbfb827ea55552efc60b63dc76f203c5348bf1028916d0c23778a4eafd19279 not found in podlist 2018-01-11 19:42:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a51034f4f20248665dd99277b02cdc508fa8a2e514b5fa2e6cabcc6798d98a0a not found in podlist 2018-01-11 19:42:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://bd58ab00d44a0c0a6b777f6edbdcda3146fc10030f934c6e3d243871c0cb0112 not found in podlist 2018-01-11 19:42:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a846cdd4bc3e21216e05674303f861478377f98087996a596a350f2e8b37b55e not found in podlist 2018-01-11 19:42:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://fcdd306123ca4e5aef511868911d1b77e53f3d718607d35a781b8a531b3d6f34 not found in podlist 2018-01-11 19:42:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://96b41ef7d1efd3414340ac37664eb2756955e2e50d9c4c14ea2125efc3d63e1c not found in podlist 2018-01-11 19:42:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://5e2241019efa7232b4fa48c947904c685bbb1d975edb2e3fb3a04c1050811654 not found in podlist 2018-01-11 19:42:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:42:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:42:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://2119a51a8e7a99532f92f6cac8f344416fa9296b57b62c35f49088615c127715 not found in podlist 2018-01-11 19:42:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from docker: Error: No such container: 606941227fb96e01f28def3d231a4d60f89fe82ffac647235aa25661ffdb6a02 2018-01-11 19:42:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://606941227fb96e01f28def3d231a4d60f89fe82ffac647235aa25661ffdb6a02 not found in podlist 2018-01-11 19:42:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from docker: Error: No such container: 9f9f53077f853a5d8b5596954e65824b3dcba6a7f51a437401987cd0b5741b42 2018-01-11 19:42:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://9f9f53077f853a5d8b5596954e65824b3dcba6a7f51a437401987cd0b5741b42 not found in podlist 2018-01-11 19:42:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from docker: Error: No such container: 954cd70152938f486cc2de30816d110be43ee2a938701403d5b3f6bff22b8e4c 2018-01-11 19:42:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://954cd70152938f486cc2de30816d110be43ee2a938701403d5b3f6bff22b8e4c not found in podlist 2018-01-11 19:42:48 UTC | INFO | (logs-agent.go:75 in func1) | 1515699768496257064 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:42:48 UTC | INFO | (logs-agent.go:75 in func1) | 1515699768496296456 [Debug] listener message: [] 2018-01-11 19:42:53 UTC | INFO | (logs-agent.go:75 in func1) | 1515699773496055666 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:42:53 UTC | INFO | (logs-agent.go:75 in func1) | 1515699773496071865 [Debug] listener message: [] 2018-01-11 19:42:58 UTC | INFO | (logs-agent.go:75 in func1) | 1515699778497265903 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:42:58 UTC | INFO | (logs-agent.go:75 in func1) | 1515699778497282025 [Debug] listener message: [] 2018-01-11 19:42:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://9eeab2830e2a526a4c0ce52f52c97c40dc038b6978fd0675f912fce120ef652c not found in podlist 2018-01-11 19:42:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://3cbfb827ea55552efc60b63dc76f203c5348bf1028916d0c23778a4eafd19279 not found in podlist 2018-01-11 19:42:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a51034f4f20248665dd99277b02cdc508fa8a2e514b5fa2e6cabcc6798d98a0a not found in podlist 2018-01-11 19:42:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://bd58ab00d44a0c0a6b777f6edbdcda3146fc10030f934c6e3d243871c0cb0112 not found in podlist 2018-01-11 19:42:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://fcdd306123ca4e5aef511868911d1b77e53f3d718607d35a781b8a531b3d6f34 not found in podlist 2018-01-11 19:42:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://96b41ef7d1efd3414340ac37664eb2756955e2e50d9c4c14ea2125efc3d63e1c not found in podlist 2018-01-11 19:42:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://5e2241019efa7232b4fa48c947904c685bbb1d975edb2e3fb3a04c1050811654 not found in podlist 2018-01-11 19:42:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:42:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:42:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://2119a51a8e7a99532f92f6cac8f344416fa9296b57b62c35f49088615c127715 not found in podlist 2018-01-11 19:43:03 UTC | INFO | (logs-agent.go:75 in func1) | 1515699783587632006 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:43:03 UTC | INFO | (logs-agent.go:75 in func1) | 1515699783587673100 [Debug] listener message: [] 2018-01-11 19:43:08 UTC | INFO | (logs-agent.go:75 in func1) | 1515699788496328285 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:43:08 UTC | INFO | (logs-agent.go:75 in func1) | 1515699788496365944 [Debug] listener message: [] 2018-01-11 19:43:13 UTC | INFO | (logs-agent.go:75 in func1) | 1515699793497242199 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:43:13 UTC | INFO | (logs-agent.go:75 in func1) | 1515699793497272329 [Debug] listener message: [] 2018-01-11 19:43:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://9eeab2830e2a526a4c0ce52f52c97c40dc038b6978fd0675f912fce120ef652c not found in podlist 2018-01-11 19:43:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://3cbfb827ea55552efc60b63dc76f203c5348bf1028916d0c23778a4eafd19279 not found in podlist 2018-01-11 19:43:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a51034f4f20248665dd99277b02cdc508fa8a2e514b5fa2e6cabcc6798d98a0a not found in podlist 2018-01-11 19:43:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://bd58ab00d44a0c0a6b777f6edbdcda3146fc10030f934c6e3d243871c0cb0112 not found in podlist 2018-01-11 19:43:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://fcdd306123ca4e5aef511868911d1b77e53f3d718607d35a781b8a531b3d6f34 not found in podlist 2018-01-11 19:43:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://96b41ef7d1efd3414340ac37664eb2756955e2e50d9c4c14ea2125efc3d63e1c not found in podlist 2018-01-11 19:43:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://5e2241019efa7232b4fa48c947904c685bbb1d975edb2e3fb3a04c1050811654 not found in podlist 2018-01-11 19:43:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:43:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:43:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://2119a51a8e7a99532f92f6cac8f344416fa9296b57b62c35f49088615c127715 not found in podlist 2018-01-11 19:43:18 UTC | INFO | (logs-agent.go:75 in func1) | 1515699798496529791 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:43:18 UTC | INFO | (logs-agent.go:75 in func1) | 1515699798496567311 [Debug] listener message: [] 2018-01-11 19:43:23 UTC | INFO | (logs-agent.go:75 in func1) | 1515699803497270762 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:43:23 UTC | INFO | (logs-agent.go:75 in func1) | 1515699803497306594 [Debug] listener message: [] 2018-01-11 19:43:28 UTC | INFO | (logs-agent.go:75 in func1) | 1515699808497331010 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:43:28 UTC | INFO | (logs-agent.go:75 in func1) | 1515699808497370508 [Debug] listener message: [] 2018-01-11 19:43:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://9eeab2830e2a526a4c0ce52f52c97c40dc038b6978fd0675f912fce120ef652c not found in podlist 2018-01-11 19:43:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://3cbfb827ea55552efc60b63dc76f203c5348bf1028916d0c23778a4eafd19279 not found in podlist 2018-01-11 19:43:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a51034f4f20248665dd99277b02cdc508fa8a2e514b5fa2e6cabcc6798d98a0a not found in podlist 2018-01-11 19:43:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://bd58ab00d44a0c0a6b777f6edbdcda3146fc10030f934c6e3d243871c0cb0112 not found in podlist 2018-01-11 19:43:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://fcdd306123ca4e5aef511868911d1b77e53f3d718607d35a781b8a531b3d6f34 not found in podlist 2018-01-11 19:43:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://96b41ef7d1efd3414340ac37664eb2756955e2e50d9c4c14ea2125efc3d63e1c not found in podlist 2018-01-11 19:43:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://5e2241019efa7232b4fa48c947904c685bbb1d975edb2e3fb3a04c1050811654 not found in podlist 2018-01-11 19:43:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:43:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:43:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://2119a51a8e7a99532f92f6cac8f344416fa9296b57b62c35f49088615c127715 not found in podlist 2018-01-11 19:43:33 UTC | INFO | (logs-agent.go:75 in func1) | 1515699813499422198 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:43:33 UTC | INFO | (logs-agent.go:75 in func1) | 1515699813499457242 [Debug] listener message: [] 2018-01-11 19:43:38 UTC | INFO | (logs-agent.go:75 in func1) | 1515699818496725127 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:43:38 UTC | INFO | (logs-agent.go:75 in func1) | 1515699818496780184 [Debug] listener message: [] 2018-01-11 19:43:43 UTC | INFO | (logs-agent.go:75 in func1) | 1515699823497689167 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:43:43 UTC | INFO | (logs-agent.go:75 in func1) | 1515699823497721130 [Debug] listener message: [] 2018-01-11 19:43:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://9eeab2830e2a526a4c0ce52f52c97c40dc038b6978fd0675f912fce120ef652c not found in podlist 2018-01-11 19:43:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://3cbfb827ea55552efc60b63dc76f203c5348bf1028916d0c23778a4eafd19279 not found in podlist 2018-01-11 19:43:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a51034f4f20248665dd99277b02cdc508fa8a2e514b5fa2e6cabcc6798d98a0a not found in podlist 2018-01-11 19:43:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://bd58ab00d44a0c0a6b777f6edbdcda3146fc10030f934c6e3d243871c0cb0112 not found in podlist 2018-01-11 19:43:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://fcdd306123ca4e5aef511868911d1b77e53f3d718607d35a781b8a531b3d6f34 not found in podlist 2018-01-11 19:43:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://96b41ef7d1efd3414340ac37664eb2756955e2e50d9c4c14ea2125efc3d63e1c not found in podlist 2018-01-11 19:43:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://5e2241019efa7232b4fa48c947904c685bbb1d975edb2e3fb3a04c1050811654 not found in podlist 2018-01-11 19:43:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:43:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:43:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://2119a51a8e7a99532f92f6cac8f344416fa9296b57b62c35f49088615c127715 not found in podlist 2018-01-11 19:43:48 UTC | INFO | (logs-agent.go:75 in func1) | 1515699828495935820 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:43:48 UTC | INFO | (logs-agent.go:75 in func1) | 1515699828495971916 [Debug] listener message: [] 2018-01-11 19:43:53 UTC | INFO | (logs-agent.go:75 in func1) | 1515699833496544864 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:43:53 UTC | INFO | (logs-agent.go:75 in func1) | 1515699833496582811 [Debug] listener message: [] 2018-01-11 19:43:58 UTC | INFO | (logs-agent.go:75 in func1) | 1515699838499593235 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:43:58 UTC | INFO | (logs-agent.go:75 in func1) | 1515699838499610699 [Debug] listener message: [] 2018-01-11 19:43:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://9eeab2830e2a526a4c0ce52f52c97c40dc038b6978fd0675f912fce120ef652c not found in podlist 2018-01-11 19:43:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://3cbfb827ea55552efc60b63dc76f203c5348bf1028916d0c23778a4eafd19279 not found in podlist 2018-01-11 19:43:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a51034f4f20248665dd99277b02cdc508fa8a2e514b5fa2e6cabcc6798d98a0a not found in podlist 2018-01-11 19:43:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://bd58ab00d44a0c0a6b777f6edbdcda3146fc10030f934c6e3d243871c0cb0112 not found in podlist 2018-01-11 19:43:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://fcdd306123ca4e5aef511868911d1b77e53f3d718607d35a781b8a531b3d6f34 not found in podlist 2018-01-11 19:43:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://96b41ef7d1efd3414340ac37664eb2756955e2e50d9c4c14ea2125efc3d63e1c not found in podlist 2018-01-11 19:43:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://5e2241019efa7232b4fa48c947904c685bbb1d975edb2e3fb3a04c1050811654 not found in podlist 2018-01-11 19:43:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:43:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:43:58 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://2119a51a8e7a99532f92f6cac8f344416fa9296b57b62c35f49088615c127715 not found in podlist 2018-01-11 19:44:03 UTC | INFO | (logs-agent.go:75 in func1) | 1515699843496805405 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:44:03 UTC | INFO | (logs-agent.go:75 in func1) | 1515699843496909130 [Debug] listener message: [] 2018-01-11 19:44:08 UTC | INFO | (logs-agent.go:75 in func1) | 1515699848496602123 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:44:08 UTC | INFO | (logs-agent.go:75 in func1) | 1515699848496639616 [Debug] listener message: [] 2018-01-11 19:44:13 UTC | INFO | (logs-agent.go:75 in func1) | 1515699853497268377 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:44:13 UTC | INFO | (logs-agent.go:75 in func1) | 1515699853497291496 [Debug] listener message: [] 2018-01-11 19:44:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://9eeab2830e2a526a4c0ce52f52c97c40dc038b6978fd0675f912fce120ef652c not found in podlist 2018-01-11 19:44:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://3cbfb827ea55552efc60b63dc76f203c5348bf1028916d0c23778a4eafd19279 not found in podlist 2018-01-11 19:44:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a51034f4f20248665dd99277b02cdc508fa8a2e514b5fa2e6cabcc6798d98a0a not found in podlist 2018-01-11 19:44:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://bd58ab00d44a0c0a6b777f6edbdcda3146fc10030f934c6e3d243871c0cb0112 not found in podlist 2018-01-11 19:44:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://fcdd306123ca4e5aef511868911d1b77e53f3d718607d35a781b8a531b3d6f34 not found in podlist 2018-01-11 19:44:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://96b41ef7d1efd3414340ac37664eb2756955e2e50d9c4c14ea2125efc3d63e1c not found in podlist 2018-01-11 19:44:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://5e2241019efa7232b4fa48c947904c685bbb1d975edb2e3fb3a04c1050811654 not found in podlist 2018-01-11 19:44:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:44:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:44:13 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://2119a51a8e7a99532f92f6cac8f344416fa9296b57b62c35f49088615c127715 not found in podlist 2018-01-11 19:44:18 UTC | INFO | (logs-agent.go:75 in func1) | 1515699858496557794 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:44:18 UTC | INFO | (logs-agent.go:75 in func1) | 1515699858496624389 [Debug] listener message: [] 2018-01-11 19:44:23 UTC | INFO | (logs-agent.go:75 in func1) | 1515699863496349412 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:44:23 UTC | INFO | (logs-agent.go:75 in func1) | 1515699863496386349 [Debug] listener message: [] 2018-01-11 19:44:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://9eeab2830e2a526a4c0ce52f52c97c40dc038b6978fd0675f912fce120ef652c not found in podlist 2018-01-11 19:44:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://3cbfb827ea55552efc60b63dc76f203c5348bf1028916d0c23778a4eafd19279 not found in podlist 2018-01-11 19:44:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a51034f4f20248665dd99277b02cdc508fa8a2e514b5fa2e6cabcc6798d98a0a not found in podlist 2018-01-11 19:44:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://bd58ab00d44a0c0a6b777f6edbdcda3146fc10030f934c6e3d243871c0cb0112 not found in podlist 2018-01-11 19:44:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://fcdd306123ca4e5aef511868911d1b77e53f3d718607d35a781b8a531b3d6f34 not found in podlist 2018-01-11 19:44:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://96b41ef7d1efd3414340ac37664eb2756955e2e50d9c4c14ea2125efc3d63e1c not found in podlist 2018-01-11 19:44:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://5e2241019efa7232b4fa48c947904c685bbb1d975edb2e3fb3a04c1050811654 not found in podlist 2018-01-11 19:44:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:44:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:44:28 UTC | INFO | (logs-agent.go:75 in func1) | 1515699868498557460 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:44:28 UTC | INFO | (logs-agent.go:75 in func1) | 1515699868498686565 [Debug] listener message: [] 2018-01-11 19:44:28 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://2119a51a8e7a99532f92f6cac8f344416fa9296b57b62c35f49088615c127715 not found in podlist 2018-01-11 19:44:33 UTC | INFO | (logs-agent.go:75 in func1) | 1515699873496997867 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:44:33 UTC | INFO | (logs-agent.go:75 in func1) | 1515699873497031524 [Debug] listener message: [] 2018-01-11 19:44:38 UTC | INFO | (logs-agent.go:75 in func1) | 1515699878495956404 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:44:38 UTC | INFO | (logs-agent.go:75 in func1) | 1515699878495994126 [Debug] listener message: [] 2018-01-11 19:44:43 UTC | INFO | (logs-agent.go:75 in func1) | 1515699883497032039 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:44:43 UTC | INFO | (logs-agent.go:75 in func1) | 1515699883497053155 [Debug] listener message: [] 2018-01-11 19:44:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://9eeab2830e2a526a4c0ce52f52c97c40dc038b6978fd0675f912fce120ef652c not found in podlist 2018-01-11 19:44:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://3cbfb827ea55552efc60b63dc76f203c5348bf1028916d0c23778a4eafd19279 not found in podlist 2018-01-11 19:44:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a51034f4f20248665dd99277b02cdc508fa8a2e514b5fa2e6cabcc6798d98a0a not found in podlist 2018-01-11 19:44:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://bd58ab00d44a0c0a6b777f6edbdcda3146fc10030f934c6e3d243871c0cb0112 not found in podlist 2018-01-11 19:44:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://fcdd306123ca4e5aef511868911d1b77e53f3d718607d35a781b8a531b3d6f34 not found in podlist 2018-01-11 19:44:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://96b41ef7d1efd3414340ac37664eb2756955e2e50d9c4c14ea2125efc3d63e1c not found in podlist 2018-01-11 19:44:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://5e2241019efa7232b4fa48c947904c685bbb1d975edb2e3fb3a04c1050811654 not found in podlist 2018-01-11 19:44:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:44:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://a6510f1f71327d0ac2d94677c650347c0a37287bffaf924b14e81baec56d3744 not found in podlist 2018-01-11 19:44:43 UTC | WARN | (tagger.go:248 in Tag) | error collecting from kubelet: container docker://2119a51a8e7a99532f92f6cac8f344416fa9296b57b62c35f49088615c127715 not found in podlist 2018-01-11 19:44:48 UTC | INFO | (logs-agent.go:75 in func1) | 1515699888496382337 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:44:48 UTC | INFO | (logs-agent.go:75 in func1) | 1515699888496408525 [Debug] listener message: [] 2018-01-11 19:44:53 UTC | INFO | (logs-agent.go:75 in func1) | 1515699893496835227 [Debug] found 0 changed pods out of 7, new resversion 72898050 2018-01-11 19:44:53 UTC | INFO | (logs-agent.go:75 in func1) | 1515699893496867396 [Debug] listener message: [] |
Hey @macat, I wanted to keep you updated on this - As it stands the log agent does not fully support the Autodiscovery feature in kubernetes. We are currently working on improving this and have a better support for Autodiscovery on our roadmap. Would you mind if we get your details through a ticket (to our support-team) and open a Feature Request so that we can keep you updated when this is released ? Best, .C |
OK, thank you. Actually, I realized that error does not prevent my logs to be shipped. After removing the image filter, all logs are being transferred to DataDog, which is great. The agent even picked up the Kubernetes attributes from the containers, so I'm very happy. |
I'm having this same issue with beta 8, and I am not seeing logs from my service containers. I'm using namespaces, btw. Not sure if that makes any difference... @macat would you mind posting your updated config? |
Simply removed the apiVersion: v1
data:
datadog.api.key: ooo
datadog.yaml: |
log_enabled: true
listeners:
- name: docker
config_providers:
- name: kubelet
polling: true
docker_daemon.yaml: |
init_config:
docker_root: /host
logs:
- type: docker
service: docker
source: docker
- type: file
path: /host/var/log/syslog
service: syslog
source: syslog |
Indeed, removing the image works - But as one does not have control over the logs that are collected via a filter, it can result in a lot of undesired logs. Thanks again for contributing ! |
Edit: disregard everything, I wasn't paying attention close enough, and I was mounting the checks configs in When I mount them in the correct location, I get some different errors though:
They're under these weird paths because that's how k8s mounts configmaps as files. Despite these errors it seems that logs-agent does attempt to read container logs though:
It seems like our Docker (1.12.6, CoreOS) is too old? @macat if you don't mind me asking, what Docker version are you running? In your initial comment you said 0.13, but that seems wrong, I'm guessing it's 1.13.x? |
Hi everyone, A little message just to signal you that my DataDog agent is reporting the same kind of errors. I have an opened ticket that talk about that here: https://help.datadoghq.com/hc/en-us/requests/130699 (with logs from the agent) I have a k8s 1.9.2 cluster. My Datadog agent is the v6 one and it is deployed thanks to the stable chart you provide. I deploy my agent thanks to this command:
with the following
|
I got the same error.
values.yamlimage:
repository: datadog/agent # Agent6
tag: 6.0.2 # Use 6.0.0-jmx to enable jmx fetch collection
pullPolicy: IfNotPresent
daemonset:
enabled: true
updateStrategy: RollingUpdate
deployment:
enabled: false
replicas: 1
kubeStateMetrics:
enabled: true
datadog:
apiKey: xxxxx
name: dd-agent
logLevel: WARNING
collectEvents: false
env:
- name: DD_LOGS_ENABLED
value: "true"
leaderLeaseDuration: 600s
confd:
kubernetes.yaml: |-
init_config:
instances:
- port: 4194
collect_events: True
namespace_name_regexp: .*
docker_daemon.yaml: |-
logs:
- type: docker
service: docker
source: docker
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 256m
memory: 512Mi
rbac:
create: true
serviceAccountName: default
tolerations: []
kube-state-metrics:
rbac:
create: true
serviceAccountName: default |
Got this on kube 1.7.10 in Azure. |
Is there any workaround to disable this feature while it is being fixed? Maybe using one of these env vars? https://github.com/DataDog/datadog-agent/tree/master/Dockerfiles/agent#tagging |
Hi everyone, we have a fix #1345 that should resolve the logging issues and will be included in the next 6.1 release. We're aware of an issue on kubernetes side where static pods are not correctly updated in the kubelet podlist (#1447) but we'll keep an eye on this to see if there could be other issues. |
@torbjornvatn I just set |
Hello there, The release 6.1.1 is available for a while now (as a Helm Chart as well) and no new reports have been filled. Feel free to reach out to support@datadoghq.com if you have any questions or experience any problem. Thanks again for the report and helping us improve the Datadog Agent. |
Describe what happened:
I am trying to set up log collection for Docker containers on a Kubernetes cluster.
Snippet from my config:
Logs are not being sent to Datadog, and I see a lot of these errors in the DD container log:
Describe what you expected:
Working log collection.
Steps to reproduce the issue:
Deploy DD agent on Kuberentes with Daemonset.
Additional environment details (Operating System, Cloud provider, etc):
Kubernetes 1.8.6
Docker 0.13
agent status
===================== Agent (v6.0.0-beta.7) =====================Status date: 2018-01-10 16:49:09.760419 UTC
Pid: 7
Python Version: 2.7.14
Logs:
Check Runners: 10
Log Level: info
Paths
Clocks
Host Info
Hostnames
=========
Collector
Running Checks
Loading Errors
========
JMXFetch
Initialized checks
Failed checks
=========
Forwarder
CheckRunsV1: 29
IntakeV1: 6
RetryQueueSize: 0
Success: 64
TimeseriesV1: 29
API Keys status
=========
DogStatsD
Checks Metric Sample: 16694
Event: 6
Events Flushed: 6
Number Of Flushes: 29
Series Flushed: 12074
Service Check: 377
Service Checks Flushed: 393
Dogstatsd Metric Sample: 697
The text was updated successfully, but these errors were encountered: