Skip to content
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

added termination reason metric #276

Merged
merged 3 commits into from
Oct 19, 2017
Merged

added termination reason metric #276

merged 3 commits into from
Oct 19, 2017

Conversation

caarlos0
Copy link
Contributor

@caarlos0 caarlos0 commented Oct 17, 2017

very much like #256, but for containers that were terminated.

It should be useful to detect apps that are being constantly OOMKilled, for example.

I got the possible reasons from kubernetes codebase:

https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/dockershim/docker_container.go#L328-L361

+cc @brancz


This change is Reviewable

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 17, 2017
@brancz
Copy link
Member

brancz commented Oct 18, 2017

We need to be careful with the amount of metrics we add especially around pods and containers, as they grow linearly with the other objects. This seems like extremely useful information though so I think it's a valuable addition. We're currently in the last steps of releasing v1.1.0 so we're gonna hold off on merging this until after v1.1.0 has gone GA.

Code wise this lgtm 👍 thanks!

@caarlos0
Copy link
Contributor Author

Nice, once v1.1.0 is out I'll ping you again here then 🍻

@caarlos0
Copy link
Contributor Author

@brancz ping

@brancz
Copy link
Member

brancz commented Oct 19, 2017

Thanks for the ping!

@brancz brancz merged commit 44b3b6c into kubernetes:master Oct 19, 2017
@caarlos0 caarlos0 deleted the termination-reason branch October 19, 2017 13:30
@caarlos0
Copy link
Contributor Author

Thanks :D

while1malloc0 pushed a commit to while1malloc0/kube-state-metrics that referenced this pull request Jul 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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.

3 participants