This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
мониторинг_кластера_kubernetes [2025/03/25 13:10] val |
мониторинг_кластера_kubernetes [2025/04/02 11:42] (current) val [Мониторинг кластера Kubernetes] |
||
---|---|---|---|
Line 7: | Line 7: | ||
* [[https://selectel.ru/blog/tutorials/monitoring-in-k8s-with-prometheus/|selectel Мониторинг в K8s с помощью Prometheus]] | * [[https://selectel.ru/blog/tutorials/monitoring-in-k8s-with-prometheus/|selectel Мониторинг в K8s с помощью Prometheus]] | ||
* [[https://www.groundcover.com/blog/kubernetes-observability|Kubernetes Observability Guide: Best Practices & Tools]] | * [[https://www.groundcover.com/blog/kubernetes-observability|Kubernetes Observability Guide: Best Practices & Tools]] | ||
+ | * [[https://sysdig.com/blog/how-to-monitor-kubelet/|How to Monitor the Kubelet]] | ||
+ | * [[https://valyala.medium.com/how-to-use-relabeling-in-prometheus-and-victoriametrics-8b90fc22c4b2|How to use relabeling in Prometheus and VictoriaMetrics]] | ||
| | ||
Line 21: | Line 23: | ||
===== Запись вебинара ===== | ===== Запись вебинара ===== | ||
- | * Тэги: | + | * Тэги: Kubernetes, Monitoring, Observability, Metrics Server, VictoriaMetrics, Prometheus, Grafana |
+ | * https://youtu.be/qYKvsOFcpf4 | ||
+ | * https://rutube.ru/video/private/5bfc09467bd36c30276600e7b17b3bfc/ | ||
===== Методическая подготовка ===== | ===== Методическая подготовка ===== | ||
Line 46: | Line 50: | ||
===== Шаг 2. Metrics Server ===== | ===== Шаг 2. Metrics Server ===== | ||
- | * [[https://kubernetes-sigs.github.io/metrics-server/Kubernetes Metrics Server]] | + | * [[Система Kubernetes#Metrics Server]] |
- | * [[https://medium.com/@cloudspinx/fix-error-metrics-api-not-available-in-kubernetes-aa10766e1c2f|Fix “error: Metrics API not available” in Kubernetes]] | + | |
- | <code> | ||
- | kube1:~/metrics-server# curl -L https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.7.2/components.yaml | tee metrics-server-components.yaml | ||
- | |||
- | kube1:~/metrics-server# cat metrics-server-components.yaml | ||
- | </code><code> | ||
- | ... | ||
- | containers: | ||
- | - args: | ||
- | - --cert-dir=/tmp | ||
- | - --kubelet-insecure-tls # add this | ||
- | ... | ||
- | </code><code> | ||
- | kube1:~/metrics-server# kubectl apply -f metrics-server-components.yaml | ||
- | |||
- | kube1# kubectl get pods -A | grep metrics-server | ||
- | |||
- | kube1# kubectl top pod #-n kube-system | ||
- | |||
- | kube1# kubectl top pod -A --sort-by=mem | ||
- | |||
- | kube1# kubectl top node | ||
- | </code> | ||
===== Шаг 3. VictoriaMetrics ===== | ===== Шаг 3. VictoriaMetrics ===== |