carlosedp / cluster-monitoring

Cluster monitoring stack for clusters based on Prometheus Operator
MIT License
740 stars 200 forks source link

Some metrics from cadvisor have no data on K3s #17

Closed carlosedp closed 5 years ago

carlosedp commented 5 years ago

Due to different runtime use by K3s, cadvisor does not report some metrics due to missing fields.

Ref:

geekdave commented 5 years ago

Looks like k3s supports running using docker instead of containerd:

k3s includes and defaults to containerd. Why? Because it’s just plain better. If you want to run with Docker first stop and think, “Really? Do I really want more headache?” If still yes then you just need to run the agent with the --docker flag.

https://rancher.com/docs/k3s/latest/en/configuration/#containerd-and-docker

I'll give this a try soon and see if it resolves the issue.

carlosedp commented 5 years ago

Deploying K3s with Docker as the runtime with k3s server --docker makes all metadata available in metrics.

carlosedp commented 5 years ago

Tested on K3s v0.10.2 and metrics are generated without requiring --docker as runtime.