База знаний Антона Сидорова

База знаний по аналитике, ИТ архитектуре, API. Документирование. Тесты инструментов.


Project maintained by daemon110282 Hosted on GitHub Pages — Theme by mattgraham

k8s метрики

Metrics monitoring:

TODO

Доступность

OOMKilled

kube_pod_container_resource_limits{resource=”memory”, pod=””}

kube_pod_container_status_restarts_total {pod=””} kube_pod_container_status_restarts_total {cluster=””, container=””, namespace=”production”} kube_pod_container_status_restarts_total {cluster=~”$cluster”,container=”“,exported_namespace=~”$namespace”} kube_pod_container_status_restarts_total {cluster=~”$cluster”,pod=”$pod”,exported_namespace=~”$namespace”}

kube_pod_container_status_last_terminated_reason { reason= “OOMKilled”, pod=””} kube_pod_container_status_last_terminated_reason { reason= “OOMKilled”, pod=”$pod”} sum(container_memory_usage_bytes{cluster=~”$cluster”,namespace=~”$namespace”,pod=”$pod”,name!=”“,name!~”.POD.”}) by (pod)

kube_pod_container_status_last_terminated_reason { cluster=~”$cluster”,pod=”$pod”,reason= “OOMKilled”}