diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index f8395bc1e8b..5b26b4af8a2 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -239,6 +239,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Keep `etcd` followers members from reporting `leader` metricset events {pull}12004[12004] - Add overview dashboard to Consul module {pull}10665[10665] - New fields were added in the mysql/status metricset. {pull}12227[12227] +- Always report Pod UID in the `pod` metricset. {pull}12345[12345] - Add Vsphere Virtual Machine operating system to `os` field in Vsphere virtualmachine module. {pull}12391[12391] *Packetbeat* diff --git a/metricbeat/module/kubernetes/pod/data.go b/metricbeat/module/kubernetes/pod/data.go index 75b43d74328..ccfa3a8ef51 100644 --- a/metricbeat/module/kubernetes/pod/data.go +++ b/metricbeat/module/kubernetes/pod/data.go @@ -65,6 +65,7 @@ func eventMapping(content []byte, perfMetrics *util.PerfMetricsCache) ([]common. }, }, "name": pod.PodRef.Name, + "uid": pod.PodRef.UID, "cpu": common.MapStr{ "usage": common.MapStr{ diff --git a/metricbeat/module/kubernetes/pod/pod_test.go b/metricbeat/module/kubernetes/pod/pod_test.go index 4a3500fdb5d..6b0a5069c59 100644 --- a/metricbeat/module/kubernetes/pod/pod_test.go +++ b/metricbeat/module/kubernetes/pod/pod_test.go @@ -51,6 +51,7 @@ func TestEventMapping(t *testing.T) { testCases := map[string]interface{}{ "name": "nginx-deployment-2303442956-pcqfc", + "uid": "beabc196-2456-11e7-a3ad-42010a840235", "network.rx.bytes": 107056, "network.rx.errors": 0,