-
Notifications
You must be signed in to change notification settings - Fork 5k
Update docs for metadata_processors #13650
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1276,8 +1276,18 @@ section. | |||||
| === Add Kubernetes metadata | ||||||
|
|
||||||
| The `add_kubernetes_metadata` processor annotates each event with relevant | ||||||
| metadata based on which Kubernetes pod the event originated from. Each event is | ||||||
| annotated with: | ||||||
| metadata based on which Kubernetes pod the event originated from. | ||||||
| At startup it will detect an `in_cluster` environment and cache the Kubernetes related metadata. | ||||||
|
|
||||||
| The simple configuration below enables the processor. | ||||||
|
|
||||||
| [source,yaml] | ||||||
| ------------------------------------------------------------------------------- | ||||||
| processors: | ||||||
| - add_kubernetes_metadata: ~ | ||||||
| ------------------------------------------------------------------------------- | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think there is no need to add sample configuration, there is already some configuration examples some lines below. |
||||||
|
|
||||||
| Each event is annotated with: | ||||||
|
|
||||||
| * Pod Name | ||||||
| * Pod UID | ||||||
|
|
@@ -1360,7 +1370,17 @@ case you want to specify your own. | |||||
| === Add Docker metadata | ||||||
|
|
||||||
| The `add_docker_metadata` processor annotates each event with relevant metadata | ||||||
| from Docker containers: | ||||||
| from Docker containers. At startup it will detect a docker environment and cache the metadata. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| The simple configuration below enables the processor. | ||||||
|
|
||||||
| [source,yaml] | ||||||
| ------------------------------------------------------------------------------- | ||||||
| processors: | ||||||
| - add_docker_metadata: ~ | ||||||
| ------------------------------------------------------------------------------- | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, I think there is no need to add another configuration example. |
||||||
|
|
||||||
| Each event is annotated with: | ||||||
|
|
||||||
| * Container ID | ||||||
| * Name | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that we should more explicitly say that it will get Kubernetes-related metadata only if it finds a working configuration. Same thing for docker.