-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Align k8s metadata configurations in Kubernetes module: add addResourceMetadata config #29133
Align k8s metadata configurations in Kubernetes module: add addResourceMetadata config #29133
Conversation
This pull request does not have a backport label. Could you fix it @tetianakravchenko? 🙏
NOTE: |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
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 left some minors but overall is looking good already. We will also need to add the setting in documentation I guess.
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.
Looks good, we only need to ensure that we stop the watchers properly.
Pinging @elastic/integrations (Team:Integrations) |
@tetianakravchenko you should add a Changelog entry as well |
/test |
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
…er and nsWatcher to enricher Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
…nfig that leads to 'failed to parse field' error Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
…eMetadataWatchers; return resource watcher if nodeWatcher/nsWatcher failed to be created Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
66f1d19
to
1ab0304
Compare
@MichaelKatsoulis please have a look 1ab0304 |
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.
LGTM! You can merge it!
/package |
@Mergifyio backport 7.17 |
Sorry but I didn't understand the command. Please consult the commands documentation 📚. |
@Mergifyio backport 7.17 |
✅ Backports have been created
|
…ceMetadata config (#29133) * use addResourceMetadata config instead of hardcoded bool Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co> * revert config for local dev Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co> * update doc; use common function to create all watchers; add nodeWatcher and nsWatcher to enricher Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co> * revert ek_stack Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co> * add stop watchers; adjust test for dedoting labels; fix overriding config that leads to 'failed to parse field' error Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co> * adjust log messages; check that watcher is not nil Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co> * fix error message format; rename getPodMetadataWatchers -> getResourceMetadataWatchers; return resource watcher if nodeWatcher/nsWatcher failed to be created Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co> * add changelog Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co> (cherry picked from commit 95bdebf) # Conflicts: # libbeat/autodiscover/providers/kubernetes/pod.go # libbeat/autodiscover/providers/kubernetes/pod_test.go # libbeat/common/kubernetes/metadata/metadata.go # libbeat/common/kubernetes/metadata/pod.go # libbeat/common/kubernetes/metadata/pod_test.go # libbeat/processors/add_kubernetes_metadata/indexers_test.go # metricbeat/docs/modules/kubernetes.asciidoc # metricbeat/metricbeat.reference.yml # metricbeat/module/kubernetes/_meta/config.reference.yml # metricbeat/module/kubernetes/util/kubernetes.go # x-pack/elastic-agent/pkg/composable/providers/kubernetes/pod.go # x-pack/metricbeat/metricbeat.reference.yml
…ddResourceMetadata config (elastic#29133)" This reverts commit ff67957.
Signed-off-by: Tetiana Kravchenko tetiana.kravchenko@elastic.co
What does this PR do?
add configuration option for
add_resource_metadata
in kubernetes module.Why is it important?
align configuration:
add_resource_metadata
is already available inadd_kubernetes_metadata
processor and thekubernetes
providerChecklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
metricset.name: pod:
metricset.name: container
metricset.name: state_service

Logs