一、核心指标获取 metrics-server: API server ♦ kubectl api-versions 中默认不包含metrics.k8s.io/v1beta1;使用时需要添加kube-aggregator前缀 ♦ metrics部署文件:https://github.com/kubernetes-incubator/metrics-server/tree/master/deploy/1.8%2B 下载到本地并应用之后就可以使用 kubectl api-versions查询,...
--- apiVersion: v1 kind: ServiceAccount metadata: name: metrics-server namespace: kube-system --- apiVersion: apps/v1 kind: Deployment metadata: name: metrics-server namespace: kube-system labels: k8s-app: metrics-server spec: selector: matchLabels: k8s-app: metrics-server template: metad...
NAME READY STATUS RESTARTS AGE IP NODE nginx-deployment-4019830974-01j1n1/1Running014m172.16.5.2k8s-node-1nginx-deployment-4019830974-2x9j41/1Terminating014m172.16.96.2k8s-node-2nginx-deployment-4019830974-pxvb91/1Terminating014m172.16.96.3k8s-node-2[root@k8s-master nginx]# [root@k8s-master nginx...
资源指标 metrics-server内建API ⾃定义指标 prometheus来采集,需要组件k8s-prometheus-adapter 新⼀代架构: 核⼼指标流⽔线:由kubelet、metrics-server以及由API server提供的api组成;CPU累计使⽤率、内存的实时使⽤率、pod的资源占⽤率及容器的磁盘占⽤率 监控流⽔线:需要在集群上...
kube-system metrics-server-77f9d68d78-s6drm 0/1 Terminating 0 4m29s kube-system metrics-server-84d67bdb-b5qzk 1/1 Running 0 19s kubernetes-dashboard dashboard-metrics-scraper-79c5968bdc-h8wkg 1/1 Running 0 17h kubernetes-dashboard kubernetes-dashboard-9f9799597-9kkbw 1/1 Running 4 17h...
name: metrics-server namespace: kube-system labels: k8s-app: metrics-server spec: selector: matchLabels: k8s-app: metrics-server template: metadata: name: metrics-server labels: k8s-app: metrics-server spec: serviceAccountName: metrics-server ...
name: metrics-server namespace: kube-system labels: k8s-app: metrics-server spec: selector: matchLabels: k8s-app: metrics-server template: metadata: name: metrics-server labels: k8s-app: metrics-server spec: serviceAccountName: metrics-server ...
`The number of Pods created by the Job controller labelled with a reason for the Pod creation., This metric also distinguishes between Pods created using different PodReplacementPolicy settings., Possible values of the "reason" label are:, "new", "recreate_terminating_or_failed", "recreate_fail...
[FEATURE] Add "Terminating" status in kube_pod_status_phase metrics #1013 [FEATURE] Add lease collector metrics #1038 [ENHANCEMENT] Add DeprecatedVersion to struct FamilyGenerator and func NewFamilyGenerator #1160 [ENHANCEMENT] Add security context to deployment and statefulset #1034 [BUGFIX] Fix ...
Number of PODs in a state other than Running, such as Terminating and ContainerCreating 2785615741_CDM Controller POD Status Alarm Number of PODs in the Running state but unavailable Table 11-2 MySQL database monitoring metrics Monitored Object Metric Name Metric Description Value Range Descr...