Skip to content

Commit

Permalink
[Kubernetes] Add last_terminated_timestamp metric to state_container …
Browse files Browse the repository at this point in the history
…datastream (#10503)

* add last_terminated_timestamp metric to state_container datastream

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* Update changelog.yml

---------

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
  • Loading branch information
tetianakravchenko authored Jul 16, 2024
1 parent b6e3b96 commit b9a416c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/kubernetes/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: 1.65.0
changes:
- description: Add last_terminated_timestamp metric to the kubernetes.state_container datastream
type: enhancement
link: https://github.com/elastic/integrations/pull/10503
- version: 1.64.0
changes:
- description: Move namespace filter to the group level configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
type: keyword
description: >
The last reason the container was in terminated state (Completed, ContainerCannotRun, Error or OOMKilled).
- name: last_terminated_timestamp
type: double
description: Last terminated time (epoch) of the container
- name: cpu
type: group
fields:
Expand Down
1 change: 1 addition & 0 deletions packages/kubernetes/docs/kube-state-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ An example event for `state_container` looks as following:
| kubernetes.container.memory.request.bytes | Container requested memory in bytes | long | byte | gauge |
| kubernetes.container.name | Kubernetes container name | keyword | | |
| kubernetes.container.status.last_terminated_reason | The last reason the container was in terminated state (Completed, ContainerCannotRun, Error or OOMKilled). | keyword | | |
| kubernetes.container.status.last_terminated_timestamp | Last terminated time (epoch) of the container | double | | |
| kubernetes.container.status.phase | Container phase (running, waiting, terminated) | keyword | | |
| kubernetes.container.status.ready | Container ready status | boolean | | |
| kubernetes.container.status.reason | The reason the container is currently in waiting (ContainerCreating, CrashLoopBackoff, ErrImagePull, ImagePullBackoff) or terminated (Completed, ContainerCannotRun, Error, OOMKilled) state. | keyword | | |
Expand Down
2 changes: 1 addition & 1 deletion packages/kubernetes/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 3.1.2
name: kubernetes
title: Kubernetes
version: 1.64.0
version: 1.65.0
description: Collect logs and metrics from Kubernetes clusters with Elastic Agent.
type: integration
categories:
Expand Down

0 comments on commit b9a416c

Please sign in to comment.