Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Fix an issue when memory/bytes_used is not reported. #1822

Merged
merged 1 commit into from
Sep 29, 2017

Conversation

loburm
Copy link
Contributor

@loburm loburm commented Sep 29, 2017

Export both evictable and non-evictable metrics.

Export both evictable and non-evictable metrics.
@k8s-reviewable
Copy link

This change is Reviewable

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 29, 2017
"memory_type": "evictable",
}
return ts
case core.MetricMemoryWorkingSet.MetricDescriptor.Name:
Copy link
Contributor

Choose a reason for hiding this comment

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

For my own education - where does this name come from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

core.MetricMemoryWorkingSet is a metric that we fetch from kubelet. At the same time bytes_used (and minor_page_faults) are created manually in preprocessMemoryMetrics function.

@fgrzadkowski
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 29, 2017
@aleksandra-malinowska
Copy link
Contributor

LGTM provided Stackdriver confirmed this metric will work with label

@fgrzadkowski
Copy link
Contributor

/approve

@piosz
Copy link
Contributor

piosz commented Oct 2, 2017

@loburm nice fix. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants