Skip to content

Commit

Permalink
Declare metadata fields in state_namespace data stream (#9630)
Browse files Browse the repository at this point in the history
* Declare metadata fields in state_namespace data stream

* update docs
  • Loading branch information
MichaelKatsoulis authored Apr 17, 2024
1 parent 5631bff commit 9cb02c7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
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.59.0
changes:
- description: Add metadata fields to state_namespace data stream.
type: enhancement
link: https://github.com/elastic/integrations/pull/9356
- version: 1.58.0
changes:
- description: Migrate to format_version v3.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,16 @@
description: >
Kubernetes namespace
- name: labels.*
type: object
object_type: keyword
object_type_mapping_type: "*"
description: >
Kubernetes labels map
- name: annotations.*
type: object
object_type: keyword
object_type_mapping_type: "*"
description: >-
Kubernetes annotations map
2 changes: 2 additions & 0 deletions packages/kubernetes/docs/kube-state-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,8 @@ An example event for `state_namespace` looks as following:
| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword | | |
| host.os.version | Operating system version as a raw string. | keyword | | |
| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword | | |
| kubernetes.annotations.\* | Kubernetes annotations map | object | | |
| kubernetes.labels.\* | Kubernetes labels map | object | | |
| kubernetes.namespace | Kubernetes namespace | keyword | | |
| kubernetes.state_namespace.created.sec | Epoch seconds since the namespace was created. | double | s | gauge |
| kubernetes.state_namespace.status.active | Whether the namespace is active (true or false). | boolean | | |
Expand Down
4 changes: 2 additions & 2 deletions 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.58.0
version: 1.59.0
description: Collect logs and metrics from Kubernetes clusters with Elastic Agent.
type: integration
categories:
Expand All @@ -10,7 +10,7 @@ categories:
- kubernetes
conditions:
kibana:
version: "^8.12.0"
version: "^8.14.0"
screenshots:
- src: /img/metricbeat_kubernetes_overview.png
title: Metricbeat Kubernetes Overview
Expand Down

0 comments on commit 9cb02c7

Please sign in to comment.