{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/beats/issues/8987","repository_url":"https://api.github.com/repos/elastic/beats","labels_url":"https://api.github.com/repos/elastic/beats/issues/8987/labels{/name}","comments_url":"https://api.github.com/repos/elastic/beats/issues/8987/comments","events_url":"https://api.github.com/repos/elastic/beats/issues/8987/events","html_url":"https://github.com/elastic/beats/issues/8987","id":378653575,"node_id":"MDU6SXNzdWUzNzg2NTM1NzU=","number":8987,"title":"Metricbeat failed to parse metrics.","user":{"login":"kuzm1ch","id":32264674,"node_id":"MDQ6VXNlcjMyMjY0Njc0","avatar_url":"https://avatars2.githubusercontent.com/u/32264674?v=4","gravatar_id":"","url":"https://api.github.com/users/kuzm1ch","html_url":"https://github.com/kuzm1ch","followers_url":"https://api.github.com/users/kuzm1ch/followers","following_url":"https://api.github.com/users/kuzm1ch/following{/other_user}","gists_url":"https://api.github.com/users/kuzm1ch/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzm1ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzm1ch/subscriptions","organizations_url":"https://api.github.com/users/kuzm1ch/orgs","repos_url":"https://api.github.com/users/kuzm1ch/repos","events_url":"https://api.github.com/users/kuzm1ch/events{/privacy}","received_events_url":"https://api.github.com/users/kuzm1ch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-08T09:50:18Z","updated_at":"2018-11-08T16:54:30Z","closed_at":"2018-11-08T16:54:30Z","author_association":"NONE","body":"Similar to `https://github.com/elastic/beats/issues/8773` but related to metricbeat.\r\n\r\n- Version: \r\nmetricbeat: 6.4.2\r\nkubernetes: v1.10.6\r\nkube-state-metrics: k8s.gcr.io/addon-resizer:1.8.3\r\n\r\nerror: \r\n`(status=400): {\"type\":\"mapper_parsing_exception\",\"reason\":\"object mapping for [kubernetes.labels.role] tried to parse field [role] as object, but found a concrete value\"}` \r\n\r\nwhy this issue occurred: \r\nfor k8s component \r\nquay.io/calico/node:v2.6.7\r\nquay.io/calico/cni:v1.11.2\r\nquay.io/calico/kube-controllers:v1.0.3\r\n\r\n```\r\nkubernetes.labels.role: \r\n{\r\n  \"kubernetes\": {\r\n    \"io/networking\": \"1\"\r\n  }\r\n}\r\n```\r\nshould be parse as kubernetes.labels : role.kubernetes.io/networking=1 \r\nbecause what we have an k8s calico default pod \r\n`kubectl describe pods ...`\r\n```\r\nLabels:         controller-revision-hash=2862843400\r\n                k8s-app=calico-node\r\n                pod-template-generation=1\r\n                role.kubernetes.io/networking=1\r\n```\r\nThe same issue exist for ingress-nginx `kubernetes.labels.app`: \r\n```\r\nLabels:         app.kubernetes.io/name=ingress-nginx\r\n                app.kubernetes.io/part-of=ingress-nginx\r\n                pod-template-hash=944731672\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/beats/issues/comments/437074882","html_url":"https://github.com/elastic/beats/issues/8987#issuecomment-437074882","issue_url":"https://api.github.com/repos/elastic/beats/issues/8987","id":437074882,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzA3NDg4Mg==","user":{"login":"jsoriano","id":15763,"node_id":"MDQ6VXNlcjE1NzYz","avatar_url":"https://avatars2.githubusercontent.com/u/15763?v=4","gravatar_id":"","url":"https://api.github.com/users/jsoriano","html_url":"https://github.com/jsoriano","followers_url":"https://api.github.com/users/jsoriano/followers","following_url":"https://api.github.com/users/jsoriano/following{/other_user}","gists_url":"https://api.github.com/users/jsoriano/gists{/gist_id}","starred_url":"https://api.github.com/users/jsoriano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsoriano/subscriptions","organizations_url":"https://api.github.com/users/jsoriano/orgs","repos_url":"https://api.github.com/users/jsoriano/repos","events_url":"https://api.github.com/users/jsoriano/events{/privacy}","received_events_url":"https://api.github.com/users/jsoriano/received_events","type":"User","site_admin":false},"created_at":"2018-11-08T16:54:30Z","updated_at":"2018-11-08T16:54:30Z","author_association":"MEMBER","body":"Hi @kuzm1ch, thanks for taking the time of reporting this issue. I think it is the same problem as in #8773. I am going to close this one so we keep all discussions in the same thread."}}
{"actor":{"display_login":"jsoriano"}}