Skip to content

[metricbeat]kubernetes: add kube-state-metrics persistentvolumes#14859

Merged
odacremolbap merged 12 commits intoelastic:masterfrom
odacremolbap:task/ksm-persistentvolumes
Dec 19, 2019
Merged

[metricbeat]kubernetes: add kube-state-metrics persistentvolumes#14859
odacremolbap merged 12 commits intoelastic:masterfrom
odacremolbap:task/ksm-persistentvolumes

Conversation

@odacremolbap
Copy link
Copy Markdown
Contributor

@odacremolbap odacremolbap commented Nov 29, 2019

@odacremolbap odacremolbap added in progress Pull request is currently in progress. Metricbeat Metricbeat containers Related to containers use case Team:Integrations Label for the Integrations team labels Nov 29, 2019
@odacremolbap odacremolbap requested a review from a team as a code owner November 29, 2019 13:29
@odacremolbap odacremolbap self-assigned this Dec 5, 2019
@odacremolbap odacremolbap added review and removed in progress Pull request is currently in progress. labels Dec 10, 2019
@odacremolbap
Copy link
Copy Markdown
Contributor Author

kube_persistentvolume_labels{persistentvolume="test-unlabeled-pv"} 1
# HELP kube_persistentvolume_capacity_bytes Persistentvolume capacity in bytes.
# TYPE kube_persistentvolume_capacity_bytes gauge
kube_persistentvolume_capacity_bytes{persistentvolume="test-pv"} 5.36870912e+09
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how come this one (test-pv) doesn't have an status phase?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

those test cases are taken from kube-state-metrics unit tests in order to test all tested cases upstream. Those are not real but created at ksm for each of the supported scenarios.

Using a (real) resource from one of our kubernetes clusters targeted a very small subset of cases.

Copy link
Copy Markdown
Contributor

@exekias exekias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a question about tests but lgtm

@odacremolbap odacremolbap requested a review from exekias December 19, 2019 08:35
@odacremolbap
Copy link
Copy Markdown
Contributor Author

Changes requested at #15066 (comment) have been also applied to this metricset.

reviews are again welcomed

@odacremolbap odacremolbap merged commit a586a35 into elastic:master Dec 19, 2019
@odacremolbap odacremolbap deleted the task/ksm-persistentvolumes branch December 19, 2019 09:19
@andresrc
Copy link
Copy Markdown
Contributor

I see #15066 backported, but not this one. Is it?

odacremolbap pushed a commit to odacremolbap/beats that referenced this pull request Jan 3, 2020
…stic#14859)

kube-state-metrics persistent volumes metrics for kubernetes

(cherry picked from commit a586a35)
odacremolbap pushed a commit that referenced this pull request Jan 3, 2020
) (#15315)

kube-state-metrics persistent volumes metrics for kubernetes

(cherry picked from commit a586a35)
@odacremolbap
Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

containers Related to containers use case Metricbeat Metricbeat Team:Integrations Label for the Integrations team v7.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants