k3s-io / k3s

Lightweight Kubernetes
https://k3s.io
Apache License 2.0
26.62k stars 2.24k forks source link

Capturing K3s metrics over http/https from VM #10062

Closed AkankshaHegde closed 1 week ago

AkankshaHegde commented 2 weeks ago

I have k3s installed on my VM. I want to get different metrics like pods, services, nodes and node health. Also resources like secrets, pvcs, deployments. How can I get these metrics over http or https in K3s. Please point me to resources to do so.

brandond commented 1 week ago

You can collect metrics from k3s using any tool that supports scraping standard Kubernetes metrics. Ref: https://kubernetes.io/docs/concepts/cluster-administration/system-metrics/