modulepackage
0.0.0-20240531205613-40ba15b69e60
Repository: https://github.com/eldius/k3s-dashboard-go.git
Documentation: pkg.go.dev
# README
k3s-dashboard-go
links
- Prometheus - HTTP API
- Tutorial: Build a Prometheus Dashboard for K3s with Wio Terminal
- Kubernetes PromQL (Prometheus Query Language) CPU aggregation walkthrough
- Kubernetes in Production: The Ultimate Guide to Monitoring Resource Metrics with Prometheus
commands to test requests
kubectl run -i --tty alpine --image=alpine --restart=Never -- sh
# nodes: count(kube_node_info)
# cpu: (1-avg(rate(node_cpu_seconds_total{mode="idle", cluster=""}[5m])))*100
# memory: (1 - sum(:node_memory_MemAvailable_bytes:sum{cluster=""}) / sum(kube_node_status_allocatable_memory_bytes{cluster=""}))*100
# pod count: sum(kubelet_running_pods{cluster="", job="kubelet", metrics_path="/metrics"})
# container count: sum(kubelet_running_containers{cluster="", job="kubelet", metrics_path="/metrics"})
# build info: kubernetes_build_info
curl 'http://prometheus-kube-prometheus-prometheus.prometheus.svc.cluster.local:9090/api/v1/query?query=<metric-query-urlencoded>'
# Packages
Package cmd has all commands
*/.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author