Skip to content

Commit d6132f5

Browse files
Add job.name field in state_container (#2625)
1 parent 00e134f commit d6132f5

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

packages/kubernetes/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "1.14.3"
3+
changes:
4+
- description: Add missing job.name and cronjob.name fields to state_container datastream
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/2613
27
- version: "1.14.2"
38
changes:
49
- description: Add missing job.name and cronjob.name fields to container related datastreams

packages/kubernetes/data_stream/state_container/fields/base-fields.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,16 @@
124124
description: >
125125
Kubernetes statefulset name
126126
127+
- name: job.name
128+
type: keyword
129+
description: >
130+
Name of the Job to which the Pod belongs
131+
132+
- name: cronjob.name
133+
type: keyword
134+
description: >
135+
Name of the CronJob to which the Pod belongs
136+
127137
- name: container.name
128138
dimension: true
129139
type: keyword

packages/kubernetes/docs/kube-state-metrics.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,10 @@ An example event for `state_container` looks as following:
201201
| kubernetes.container.status.ready | Container ready status | boolean | | |
202202
| kubernetes.container.status.reason | Waiting (ContainerCreating, CrashLoopBackoff, ErrImagePull, ImagePullBackoff) or termination (Completed, ContainerCannotRun, Error, OOMKilled) reason. | keyword | | |
203203
| kubernetes.container.status.restarts | Container restarts count | integer | | counter |
204+
| kubernetes.cronjob.name | Name of the CronJob to which the Pod belongs | keyword | | |
204205
| kubernetes.daemonset.name | Kubernetes daemonset name | keyword | | |
205206
| kubernetes.deployment.name | Kubernetes deployment name | keyword | | |
207+
| kubernetes.job.name | Name of the Job to which the Pod belongs | keyword | | |
206208
| kubernetes.labels.\* | Kubernetes labels map | object | | |
207209
| kubernetes.namespace | Kubernetes namespace | keyword | | |
208210
| kubernetes.namespace_annotations.\* | Kubernetes namespace annotations map | object | | |

packages/kubernetes/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 1.0.0
22
name: kubernetes
33
title: Kubernetes
4-
version: 1.14.2
4+
version: 1.14.3
55
license: basic
66
description: Collect logs and metrics from Kubernetes clusters with Elastic Agent.
77
type: integration

0 commit comments

Comments
 (0)