Cherry-pick #27552 to 7.15: Support kube_state_metrics v2.0.0#28049
Merged
MichaelKatsoulis merged 4 commits intoelastic:7.15from Sep 22, 2021
Merged
Cherry-pick #27552 to 7.15: Support kube_state_metrics v2.0.0#28049MichaelKatsoulis merged 4 commits intoelastic:7.15from
MichaelKatsoulis merged 4 commits intoelastic:7.15from
Conversation
* Support kube_pod_container_resource_requests and kube_pod_container_resource_limits * Add kube_node_status_capacity and kube_node_status_allocatable support * Add tests for ksm v2 for all state data streams (cherry picked from commit 1596d64)
Contributor
|
Pinging @elastic/integrations (Team:Integrations) |
ChrsMark
approved these changes
Sep 22, 2021
Member
ChrsMark
left a comment
There was a problem hiding this comment.
lgtm, just fix the changelog
Contributor
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of PR #27552 to 7.15 branch. Original message:
What does this PR do?
This PR enables
Metricbeatto supportkube-state-metricsversion 2.0.0 for kubernetes.In v2.0.0 some breaking changes where introduced.
Following fields where removed and replaced by
kube_pod_container_resource_requestsandkube_pod_container_resource_limits.Following fields where removed and replaced by
kube_node_status_capacityandkube_node_status_allocatable.Metricbeat was updated to support both new and old format of those fields.
Why is it important?
After version 2.0.0 of kube-state-metrics some fields where deprecated and replaced by others.
Without this PR fields
where missing when
kube-state-metrics v2.0.0and higher was present in the Kubernetescluster.
Details can be found here.
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.How to test this PR locally
Run metricbeat as daemonset in a Kubernetes cluster where
kube-state-metrics v2.0.0or higher is deployed and watch those fields getting populated in Elasticsearch.Related issues
Screenshots