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:
|
ChrsMark
left a comment
There was a problem hiding this comment.
I left some minors but overall is looking good already. We will also need to add the setting in documentation I guess.
ChrsMark
left a comment
There was a problem hiding this comment.
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 |
MichaelKatsoulis
left a comment
There was a problem hiding this comment.
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 createdDetails
|
…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_metadatain kubernetes module.Why is it important?
align configuration:
add_resource_metadatais already available inadd_kubernetes_metadataprocessor and thekubernetesproviderChecklist
CHANGELOG.next.asciidocorCHANGELOG-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