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

All the k8s related metrics #2114

Closed
zybjcdl opened this Issue Oct 25, 2016 · 5 comments

Comments

Projects
None yet
5 participants
@zybjcdl
Copy link

zybjcdl commented Oct 25, 2016

Hi.
I want to find the document about all the k8s metrics and the instruction of the metrics , which prometheus could collect.

Is there a document about that?

@dominikschulz

This comment has been minimized.

Copy link
Contributor

dominikschulz commented Oct 25, 2016

I'm not sure if I understand your question correctly, but maybe this link helps you: http://stackoverflow.com/questions/39366111/how-to-alert-on-the-kubernetes-cluster-health

@matthiasr

This comment has been minimized.

Copy link
Contributor

matthiasr commented Oct 25, 2016

There is not a good comprehensive overview (at least as far as I know) and there is still a lot of movement happening in this space.

As a starting point, take a look at cAdvisor, these are the container metrics exported by the kubelet.

For metrics about the state of Kubernetes objects, there is kube-state-metrics (warning: metrics there are still changing a lot).

I'm not sure if there is any detailed documentation on the metrics from the Kubernetes components themselves, but generally I just open their metrics page and look at what's there and the help strings; most of them are pretty self explanatory.

@zybjcdl

This comment has been minimized.

Copy link
Author

zybjcdl commented Oct 26, 2016

Thanks @dominikschulz @matthiasr for your help.
To summary, there are following kind of metrics for k8s.
1)Kubelet metrics:
https://godoc.org/k8s.io/kubernetes/pkg/kubelet/metrics
2)container metrics:
https://github.com/google/cadvisor/blob/master/metrics/testdata/prometheus_metrics
3)API servers: Not sure where the detailed instruction is.
4)kube-state-metrics
https://github.com/kubernetes/kube-state-metrics

If there are anything more, please let me know. Thanks!

@fabxc

This comment has been minimized.

Copy link
Member

fabxc commented Nov 12, 2016

You can also take a look at:

https://github.com/coreos/kube-prometheus
https://github.com/coreos/prometheus-operator

I gave a talk on both. Slides are here but missing explanation of course. Videos from the KubeCon talk should be available eventually:

https://speakerdeck.com/fabxc/monitoring-kubernetes-clusters-with-prometheus

I think with the previous answers, this sums up all the resources there are.

@fabxc fabxc closed this Nov 12, 2016

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.