Metric Storage for Capacity Management of Kubernetes/OpenShift Clusters
Ulrike Klusik, https://www.consol.de
PromCon Europe 2019-11-08
Management of Kubernetes/OpenShift Clusters Ulrike Klusik, - - PowerPoint PPT Presentation
Metric Storage for Capacity Management of Kubernetes/OpenShift Clusters Ulrike Klusik, https://www.consol.de PromCon Europe 2019-11-08 Motivation Capacity Management needs aggregated node capacity, quota and resource usage metrics for
Ulrike Klusik, https://www.consol.de
PromCon Europe 2019-11-08
ConSol 2
for several month and years.
cluster and application_type (infrastructure vs. application) Metrics wanted for years.
series database with longer retention policies.
ConSol 3 namespace Nodes
host
NODE- EXPORTER
central storage and visualization
Thanos Receiver Thanos Store Container Thanos container Grafana
Kubelet + cAdvisor Thanos Compactor api-servers
Project prometheus-infra-mon
PROMETHEUS KSM/OSM
Kubernetes/OpenShift Cluster
OSM (OpenShift state metrics): for running Pods per Namespace, ResourceQuotas and ClusterResourceQuotas
system metrics of resource usage
Kubernetes metric target Minio S3 bucket Thanos Query PromQL TSDB
ConSol 4
ConSol 5
expr: min by(namespace,namespace_type,resource_base,type) (label_replace({__name__=~"^(kube_resourcequota)$",namespace=~".+", resource=~"(requests.)?(memory|cpu)",resource!~"limit.*",type="hard"},"resource_base","requests.$2", "resource","(requests.)?(.+)"))
expr: max by(namespace,namespace_type,resource_base,type) (label_replace({__name__=~"^(kube_resourcequota)$",namespace=~".+", resource=~"(requests.)?(memory|cpu)",resource!~"limit.*",type="used"},"resource_base","requests.$2", "resource","(requests.)?(.+)")) …
expr: min by(namespace,namespace_type,resource_base,type) (label_replace({__name__=~"^(kube_resourcequota)$",namespace=~".+",resource=~"limits.+",type="hard"} ,"resource_base","$1","resource","(.+)"))
expr: max by(namespace,namespace_type,resource_base,type) (label_replace({__name__=~"^(kube_resourcequota)$",namespace=~".+",resource=~"limits.+",type="used"} ,"resource_base","$1","resource","(.+)"))
ConSol Consulting & Solutions Software GmbH St.-Cajetan-Straße 43 D-81669 München Tel.: +49-89-45841-100 info@consol.de www.consol.de Twitter: @consol_de