From 90d82b61952bd251c1436d0d362b8e08cac62697 Mon Sep 17 00:00:00 2001 From: Tetiana Kravchenko Date: Fri, 26 Apr 2024 10:44:16 +0200 Subject: [PATCH] rename field to last_terminated_timestamp Signed-off-by: Tetiana Kravchenko --- metricbeat/docs/fields.asciidoc | 4 +- metricbeat/module/kubernetes/fields.go | 2 +- .../state_container/_meta/fields.yml | 4 +- .../_meta/test/ksm.v2.12.0.plain.expected | 2 +- .../testdata/ksm.v2.12.0.plain-expected.json | 94 +++++++++---------- .../state_container/state_container.go | 2 +- 6 files changed, 54 insertions(+), 54 deletions(-) diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index e6c90617ff49..ca8f11854451 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -45985,10 +45985,10 @@ type: keyword -- -*`kubernetes.container.status.last_terminated_reason_timestamp`*:: +*`kubernetes.container.status.last_terminated_timestamp`*:: + -- -Last terminated time (epoch) of a container +Last terminated time (epoch) of the container type: double diff --git a/metricbeat/module/kubernetes/fields.go b/metricbeat/module/kubernetes/fields.go index dc41d83a9467..1c89d8a62358 100644 --- a/metricbeat/module/kubernetes/fields.go +++ b/metricbeat/module/kubernetes/fields.go @@ -32,5 +32,5 @@ func init() { // AssetKubernetes returns asset data. // This is the base64 encoded zlib format compressed contents of module/kubernetes. func AssetKubernetes() string { - return "eJzsfd9y27iS932eAuWbL/nKo9rr1NapmnHO2eNNJuO1k5mLrS0FIiEJYwrgAKAdndqH38JfgiRAUiIoO7Z0MTWxre4fGo1Gd6PR+Anco/17cF+tECNIIP4GAIFFgd6Di4/uhxdvAMgRzxguBabkPfjbGwAAqP8A7JBgOJPfZqhAkKP3YAPfAMCREJhs+Hvw3xecFxeX4GIrRHnxP/J3W8rEMqNkjTfvwRoWHL0BYI1RkfP3isFPgMAdasGTH7EvJQdGq9L8JABPfq7JmrIdlD8GkOSACygwFzjjgK5BSXMOdpDADcrBau/xWRgKFo0jaCH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pHGDzLVfgPXCDjmKpq0YECWnDQMfILFVFdJj0oo0CzJPDSxaO8qahk/EGUwRb69RB4BguUL2PXGPyBlIhl3cfvDhzKjSYizSxdA1NgoaLF6ARjQvOeovcpUxzRHZDU/f2qJysyCM+yMtQfm6QA8w+G0BgwsSb/adFo/3UEnB9Ajc0o/i8AAP//fUVV6Q==" } diff --git a/metricbeat/module/kubernetes/state_container/_meta/fields.yml b/metricbeat/module/kubernetes/state_container/_meta/fields.yml index 672c5f2de68f..79cb2bbf7a61 100644 --- a/metricbeat/module/kubernetes/state_container/_meta/fields.yml +++ b/metricbeat/module/kubernetes/state_container/_meta/fields.yml @@ -32,10 +32,10 @@ type: keyword description: > The last reason the container was in terminated state (Completed, ContainerCannotRun, Error or OOMKilled). - - name: last_terminated_reason_timestamp + - name: last_terminated_timestamp type: double description: > - Last terminated time (epoch) of a container + Last terminated time (epoch) of the container - name: cpu type: group fields: diff --git a/metricbeat/module/kubernetes/state_container/_meta/test/ksm.v2.12.0.plain.expected b/metricbeat/module/kubernetes/state_container/_meta/test/ksm.v2.12.0.plain.expected index 3f4945d6eb7b..a6ea7bd91733 100644 --- a/metricbeat/module/kubernetes/state_container/_meta/test/ksm.v2.12.0.plain.expected +++ b/metricbeat/module/kubernetes/state_container/_meta/test/ksm.v2.12.0.plain.expected @@ -604,7 +604,7 @@ "name": "kube-scheduler", "status": { "last_terminated_reason": "Error", - "last_terminated_reason_timestamp": 1713935860, + "last_terminated_timestamp": 1713935860, "phase": "running", "ready": true, "restarts": 0 diff --git a/metricbeat/module/kubernetes/state_container/_meta/testdata/ksm.v2.12.0.plain-expected.json b/metricbeat/module/kubernetes/state_container/_meta/testdata/ksm.v2.12.0.plain-expected.json index 49703e476cb4..fa264e5a2018 100644 --- a/metricbeat/module/kubernetes/state_container/_meta/testdata/ksm.v2.12.0.plain-expected.json +++ b/metricbeat/module/kubernetes/state_container/_meta/testdata/ksm.v2.12.0.plain-expected.json @@ -269,6 +269,53 @@ "type": "kubernetes" } }, + { + "container": { + "id": "cd52120cda244a98ed01e9259381cbcd439bc087115d93c7573bada504dbb620", + "image": { + "name": "registry.k8s.io/kube-scheduler-amd64:v1.29.1" + }, + "runtime": "containerd" + }, + "event": { + "dataset": "kubernetes.container", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "container": { + "cpu": { + "request": { + "cores": 0.1 + } + }, + "id": "cd52120cda244a98ed01e9259381cbcd439bc087115d93c7573bada504dbb620", + "name": "kube-scheduler", + "status": { + "last_terminated_reason": "Error", + "last_terminated_timestamp": 1713935860, + "phase": "running", + "ready": true, + "restarts": 0 + } + }, + "namespace": "kube-system", + "node": { + "name": "kind-control-plane" + }, + "pod": { + "name": "kube-scheduler-kind-control-plane" + } + }, + "metricset": { + "name": "state_container", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, { "container": { "id": "be5708afe249a81a67f812bfda962b8c60022ec47250f9e84a2bcfd0d74e94bc", @@ -674,53 +721,6 @@ "type": "kubernetes" } }, - { - "container": { - "id": "cd52120cda244a98ed01e9259381cbcd439bc087115d93c7573bada504dbb620", - "image": { - "name": "registry.k8s.io/kube-scheduler-amd64:v1.29.1" - }, - "runtime": "containerd" - }, - "event": { - "dataset": "kubernetes.container", - "duration": 115000, - "module": "kubernetes" - }, - "kubernetes": { - "container": { - "cpu": { - "request": { - "cores": 0.1 - } - }, - "id": "cd52120cda244a98ed01e9259381cbcd439bc087115d93c7573bada504dbb620", - "name": "kube-scheduler", - "status": { - "last_terminated_reason": "Error", - "last_terminated_reason_timestamp": 1713935860, - "phase": "running", - "ready": true, - "restarts": 0 - } - }, - "namespace": "kube-system", - "node": { - "name": "kind-control-plane" - }, - "pod": { - "name": "kube-scheduler-kind-control-plane" - } - }, - "metricset": { - "name": "state_container", - "period": 10000 - }, - "service": { - "address": "127.0.0.1:55555", - "type": "kubernetes" - } - }, { "container": { "id": "f4f832629b98ce1cefd9f409ab57dcd0850164fad75c46e3407b337679e39879", diff --git a/metricbeat/module/kubernetes/state_container/state_container.go b/metricbeat/module/kubernetes/state_container/state_container.go index 0c8f73a9399b..d00515fe081e 100644 --- a/metricbeat/module/kubernetes/state_container/state_container.go +++ b/metricbeat/module/kubernetes/state_container/state_container.go @@ -67,7 +67,7 @@ var ( "kube_pod_container_status_terminated_reason": p.LabelMetric("status.reason", "reason"), "kube_pod_container_status_waiting_reason": p.LabelMetric("status.reason", "reason"), "kube_pod_container_status_last_terminated_reason": p.LabelMetric("status.last_terminated_reason", "reason"), - "kube_pod_container_status_last_terminated_timestamp": p.Metric("status.last_terminated_reason_timestamp"), + "kube_pod_container_status_last_terminated_timestamp": p.Metric("status.last_terminated_timestamp"), }, Labels: map[string]p.LabelMap{