Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare metadata fields in state_namespace data stream #9630

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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