-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update kubernetes namespace field. (#1792)
* Use pipeline to rename fileds in cases of agents 7.x and stack ^8.x
- Loading branch information
1 parent
559bc03
commit b1ee043
Showing
54 changed files
with
1,201 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/kubernetes/data_stream/container/elasticsearch/ingest_pipeline/default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
description: Pipeline for parsing kubernetes container metrics. | ||
processors: | ||
- rename: | ||
field: kubernetes.namespace | ||
target_field: kubernetes.namespace.name | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_labels | ||
target_field: kubernetes.namespace.labels | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_annotations | ||
target_field: kubernetes.namespace.annotations | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_uid | ||
target_field: kubernetes.namespace.uid | ||
ignore_missing: true | ||
on_failure: | ||
- set: | ||
field: error.message | ||
value: '{{ _ingest.on_failure_message }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/kubernetes/data_stream/container_logs/elasticsearch/ingest_pipeline/default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
description: Pipeline for parsing kubernetes container logs. | ||
processors: | ||
- rename: | ||
field: kubernetes.namespace | ||
target_field: kubernetes.namespace.name | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_labels | ||
target_field: kubernetes.namespace.labels | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_annotations | ||
target_field: kubernetes.namespace.annotations | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_uid | ||
target_field: kubernetes.namespace.uid | ||
ignore_missing: true | ||
on_failure: | ||
- set: | ||
field: error.message | ||
value: '{{ _ingest.on_failure_message }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/kubernetes/data_stream/controllermanager/elasticsearch/ingest_pipeline/default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
description: Pipeline for parsing kubernetes controllermanager metrics. | ||
processors: | ||
- rename: | ||
field: kubernetes.namespace | ||
target_field: kubernetes.namespace.name | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_labels | ||
target_field: kubernetes.namespace.labels | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_annotations | ||
target_field: kubernetes.namespace.annotations | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_uid | ||
target_field: kubernetes.namespace.uid | ||
ignore_missing: true | ||
on_failure: | ||
- set: | ||
field: error.message | ||
value: '{{ _ingest.on_failure_message }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/kubernetes/data_stream/event/elasticsearch/ingest_pipeline/default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
description: Pipeline for parsing kubernetes event metrics. | ||
processors: | ||
- rename: | ||
field: kubernetes.namespace | ||
target_field: kubernetes.namespace.name | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_labels | ||
target_field: kubernetes.namespace.labels | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_annotations | ||
target_field: kubernetes.namespace.annotations | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_uid | ||
target_field: kubernetes.namespace.uid | ||
ignore_missing: true | ||
on_failure: | ||
- set: | ||
field: error.message | ||
value: '{{ _ingest.on_failure_message }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,4 +96,4 @@ | |
- name: uid | ||
type: keyword | ||
description: | | ||
UUID version of the object | ||
uid version of the object |
23 changes: 23 additions & 0 deletions
23
packages/kubernetes/data_stream/node/elasticsearch/ingest_pipeline/default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
description: Pipeline for parsing kubernetes node metrics. | ||
processors: | ||
- rename: | ||
field: kubernetes.namespace | ||
target_field: kubernetes.namespace.name | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_labels | ||
target_field: kubernetes.namespace.labels | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_annotations | ||
target_field: kubernetes.namespace.annotations | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_uid | ||
target_field: kubernetes.namespace.uid | ||
ignore_missing: true | ||
on_failure: | ||
- set: | ||
field: error.message | ||
value: '{{ _ingest.on_failure_message }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/kubernetes/data_stream/pod/elasticsearch/ingest_pipeline/default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
description: Pipeline for parsing kubernetes pod metrics. | ||
processors: | ||
- rename: | ||
field: kubernetes.namespace | ||
target_field: kubernetes.namespace.name | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_labels | ||
target_field: kubernetes.namespace.labels | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_annotations | ||
target_field: kubernetes.namespace.annotations | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_uid | ||
target_field: kubernetes.namespace.uid | ||
ignore_missing: true | ||
on_failure: | ||
- set: | ||
field: error.message | ||
value: '{{ _ingest.on_failure_message }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/kubernetes/data_stream/scheduler/elasticsearch/ingest_pipeline/default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
description: Pipeline for parsing kubernetes scheduler metrics. | ||
processors: | ||
- rename: | ||
field: kubernetes.namespace | ||
target_field: kubernetes.namespace.name | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_labels | ||
target_field: kubernetes.namespace.labels | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_annotations | ||
target_field: kubernetes.namespace.annotations | ||
ignore_missing: true | ||
- rename: | ||
field: kubernetes.namespace_uid | ||
target_field: kubernetes.namespace.uid | ||
ignore_missing: true | ||
on_failure: | ||
- set: | ||
field: error.message | ||
value: '{{ _ingest.on_failure_message }}' |
Oops, something went wrong.