{"text_format":"2","workbook":"xlsx","n_sheets":1,"sheets":["Sheet1"],"not_rendered":{"charts":0,"images":0,"macros":0,"external_links":0,"defined_names":1,"comments":0,"pivot_tables":0},"unopened":[],"bounds":{"document_bytes":16777216,"sheet_cells":100000,"run_cost":"one","rows_first":2000,"rows_last":500,"rows_between":2000,"halvings":0,"cell_chars":16384,"cell_head_chars":4096},"cells_cut":0,"cells_raw":0,"read":"whole","date_system":"1900"}

{"sheet":"Sheet1","index":0,"n_rows":67,"n_cols":9,"rows_kept":67,"cut":false,"hidden":false,"merged":[]}
["告警策略名称","告警策略显示名称","描述","关联资源","命名空间","告警类型","告警等级","指标名称与触发条件","表达式"]
["cpaas-node-rules","节点通用策略\nNode general rules","Kubernetes集群集群节点的告警策略\nAlert Rules for Kubernetes Cluster Nodes\nAlert Rules for Kubernetes Cluster Nodes","全部节点","cpaas-system","指标告警","严重","节点CPU使用率 > 90% 且持续1分钟","avg by(node,ip,instance) (node_cpu_utilization{node=~\".*\"})>0.9"]
["cpaas-node-rules","节点通用策略\nNode general rules","Kubernetes集群集群节点的告警策略\nAlert Rules for Kubernetes Cluster Nodes","全部节点","cpaas-system","指标告警","严重","节点内存使用率 > 85% 且持续 1 分钟","sum by (node_name,host_ip,node,ip) (node_memory_MemUsed{node=~\".*\"})/sum\n            by (node_name,host_ip,node,ip)\n            (node_memory_MemTotal_bytes{node=~\".*\"})>0.85"]
["cpaas-node-rules","节点通用策略\nNode general rules","Kubernetes集群集群节点的告警策略\nAlert Rules for Kubernetes Cluster Nodes","全部节点","cpaas-system","指标告警","提示","节点CPU饱和度(5m) > 2 且持续 1 分钟","avg by (node_name,host_ip,node,ip,instance) (node_load5{node=~\".*\"}) /\n            count by(node_name,host_ip,node,ip,instance)\n            (node_cpu_seconds_total{mode=\"idle\"})>2"]
["cpaas-node-rules","节点通用策略\nNode general rules","Kubernetes集群集群节点的告警策略\nAlert Rules for Kubernetes Cluster Nodes","全部节点","cpaas-system","指标告警","严重","节点磁盘空间使用率 > 80% 且持续 1 分钟","avg by(node_name,host_ip,node,ip,instance,device,mountpoint)\n            (node_filesystem_used{node=~\".*\",device!~\"rootfs|tmpfs|shm\",mountpoint!~\"/run/containerd/.*\"})\n            / avg by(node_name,host_ip,node,ip,instance,device,mountpoint)\n            (node_filesystem_size_bytes{node=~\".*\",device!~\"rootfs|tmpfs|shm\",mountpoint!~\"/run/containerd/.*\"})>0.8"]
["cpaas-node-rules","节点通用策略\nNode general rules","Kubernetes集群集群节点的告警策略\nAlert Rules for Kubernetes Cluster Nodes","全部节点","cpaas-system","指标告警","灾难","节点健康状态 == 0 且持续 1 分钟","up{job=\"node-exporter\",node=~\".*\"}==0"]
["cpaas-node-rules","节点通用策略\nNode general rules","Kubernetes集群集群节点的告警策略\nAlert Rules for Kubernetes Cluster Nodes","全部节点","cpaas-system","自定义告警","严重","节点处于非运行状态的NodeExporter数 == 1 且持续 1 分钟","kube_pod_status_phase{\n            pod=~\"kube-prometheus-exporter-node-.*\",phase!=\"Running\"}==1"]
["cpaas-node-rules","节点通用策略\nNode general rules","Kubernetes集群集群节点的告警策略\nAlert Rules for Kubernetes Cluster Nodes","全部节点","cpaas-system","自定义告警","严重","节点上过去30分钟内发生Node oom的次数 > 0 且持续1分钟","max by (node_name) (ceil(increase(problem_counter{node_name!=\"\",\n            reason=\"NodeOOM\"}[30m])))  >0"]
["cpaas-node-rules","节点通用策略\nNode general rules","Kubernetes集群集群节点的告警策略\nAlert Rules for Kubernetes Cluster Nodes","全部节点","cpaas-system","自定义告警","警告","节点上过去30分钟内发生Pod oom的次数 >5 且持续1分钟","max by (node_name) (ceil(increase(problem_counter{node_name!=\"\",\n            reason=\"PodOOM\"}[30m])))>5"]
["cpaas-node-rules","节点通用策略\nNode general rules","Kubernetes集群集群节点的告警策略\nAlert Rules for Kubernetes Cluster Nodes","全部节点","cpaas-system","自定义告警","严重","节点上过去30分钟内发生死锁的次数 > 0 且持续1分钟","ceil(sum by(node_name)(increase(problem_counter{\n            reason=\"DockerHung\"}[30m]))+sum by\n            (node_name)(increase(problem_counter{\n            reason=\"AUFSUmountHung\"}[30m]))) >0"]
["cpaas-node-rules","节点通用策略\nNode general rules","Kubernetes集群集群节点的告警策略\nAlert Rules for Kubernetes Cluster Nodes","全部节点","cpaas-system","自定义告警","严重","节点上过去30分钟内发生TaskHung的次数 > 0  且持续1分钟","max by (node_name) (ceil(increase(problem_counter{ node_name!=\"\",\n            reason=\"TaskHung\"}[30m]))) >0"]
["cpaas-node-rules","节点通用策略\nNode general rules","Kubernetes集群集群节点的告警策略\nAlert Rules for Kubernetes Cluster Nodes","全部节点","cpaas-system","自定义告警","警告","节点分配的文件描述符比例 > 70% 且持续 1分钟","avg by (node_name, host_ip)\n            (node_filefd_allocated{}/node_filefd_maximum{}) >0.7"]
["cpaas-node-rules","节点通用策略\nNode general rules","Kubernetes集群集群节点的告警策略\nAlert Rules for Kubernetes Cluster Nodes","全部节点","cpaas-system","自定义告警","严重","节点的僵尸进程数 > 5  且持续 1分钟","max by (node_name) (node_processes_state{ state=\"Z\"}) >5"]
["cpaas-node-rules","节点通用策略\nNode general rules","Kubernetes集群集群节点的告警策略\nAlert Rules for Kubernetes Cluster Nodes","全部节点","cpaas-system","自定义告警","警告","节点启动的进程数比例 > 70%  且持续 1分钟","avg by (node_name, host_ip)\n            (node_processes_pids{}/node_processes_max_processes{}) >0.7"]
["cpaas-cluster-rules","集群通用告警策略\nCluster general rules","Kubernetes集群健康、运行状况、平台证书等相关的告警策略\nAlert Rules related to Kubernetes cluster health, operational status, platform credentials, etc.","集群","cpaas-system","指标告警","灾难","集群内ApiServer的健康状态 != 1  且持续1分钟","sum(up{job=\"apiserver\"}) / count(up{job=\"apiserver\"})!=1"]
["cpaas-cluster-rules","集群通用告警策略\nCluster general rules","Kubernetes集群健康、运行状况、平台证书等相关的告警策略\nAlert Rules related to Kubernetes cluster health, operational status, platform credentials, etc.","集群","cpaas-system","指标告警","严重","集群内ControllerManager的健康状态 != 1  且持续1分钟","sum(up{job=\"kube-controller-manager\"}) /\n            count(up{job=\"kube-controller-manager\"})!=1"]
["cpaas-cluster-rules","集群通用告警策略\nCluster general rules","Kubernetes集群健康、运行状况、平台证书等相关的告警策略\nAlert Rules related to Kubernetes cluster health, operational status, platform credentials, etc.","集群","cpaas-system","指标告警","严重","集群内KubeScheduler的健康状态 != 1  且持续 1 分钟","sum(up{job=\"kube-scheduler\"}) / count(up{job=\"kube-scheduler\"})!=1"]
["cpaas-cluster-rules","集群通用告警策略\nCluster general rules","Kubernetes集群健康、运行状况、平台证书等相关的告警策略\nAlert Rules related to Kubernetes cluster health, operational status, platform credentials, etc.","集群","cpaas-system","指标告警","严重","集群内Kubelet的健康状态 != 1  且持续 1 分钟","sum(up{job=\"kubelet\"}) / count(up{job=\"kubelet\"})!=1"]
["cpaas-cluster-rules","集群通用告警策略\nCluster general rules","Kubernetes集群健康、运行状况、平台证书等相关的告警策略\nAlert Rules related to Kubernetes cluster health, operational status, platform credentials, etc.","集群","cpaas-system","指标告警","严重","集群内DNS的健康状态 != 1  且持续 1 分钟","sum(up{job=\"kube-dns\"}) / count(up{job=\"kube-dns\"})!=1"]
["cpaas-cluster-rules","集群通用告警策略\nCluster general rules","Kubernetes集群健康、运行状况、平台证书等相关的告警策略\nAlert Rules related to Kubernetes cluster health, operational status, platform credentials, etc.","集群","cpaas-system","指标告警","灾难","集群内Etcd的健康状态 != 1 且持续 1 分钟","up{job=\"kube-etcd\"}!=1"]
["cpaas-cluster-rules","集群通用告警策略\nCluster general rules","Kubernetes集群健康、运行状况、平台证书等相关的告警策略\nAlert Rules related to Kubernetes cluster health, operational status, platform credentials, etc.","集群","cpaas-system","指标告警","警告","集群CPU使用率 > 85% 且持续 1 分钟","cluster_cpu_utilization{}>0.85"]
["cpaas-cluster-rules","集群通用告警策略\nCluster general rules","Kubernetes集群健康、运行状况、平台证书等相关的告警策略\nAlert Rules related to Kubernetes cluster health, operational status, platform credentials, etc.","集群","cpaas-system","指标告警","警告","集群内存使用率 > 85% 且持续 1 分钟","cluster_memory_MemUsed{} / sum(node_memory_MemTotal_bytes{})>0.85"]
["cpaas-cluster-rules","集群通用告警策略\nCluster general rules","Kubernetes集群健康、运行状况、平台证书等相关的告警策略\nAlert Rules related to Kubernetes cluster health, operational status, platform credentials, etc.","集群","cpaas-system","指标告警","警告","集群内Etcd实例的数据库大小 > 1200MB 且持续 1 分钟","etcd_mvcc_db_total_size_in_use_in_bytes{namespace=\"kube-system\"}/1024/1024>1200"]
["cpaas-cluster-rules","集群通用告警策略\nCluster general rules","Kubernetes集群健康、运行状况、平台证书等相关的告警策略\nAlert Rules related to Kubernetes cluster health, operational status, platform credentials, etc.","集群","cpaas-system","自定义告警","警告","长期处于Terminating的命名空间 == 1 且持续 10 分钟","kube_namespace_status_phase{phase=\"Terminating\"}==1"]
["cpaas-cluster-rules","集群通用告警策略\nCluster general rules","Kubernetes集群健康、运行状况、平台证书等相关的告警策略\nAlert Rules related to Kubernetes cluster health, operational status, platform credentials, etc.","集群","cpaas-system","自定义告警","严重","集群子网可用IP数量 < 10 且持续 1 分钟","subnet_available_ip_count{}<10"]
["cpaas-cluster-rules","集群通用告警策略\nCluster general rules","Kubernetes集群健康、运行状况、平台证书等相关的告警策略\nAlert Rules related to Kubernetes cluster health, operational status, platform credentials, etc.","集群","cpaas-system","自定义告警","警告","平台证书的到期时间即将到期(小于30天) <= 30d 且持续 1 分钟","(0< max by(cluster,node,namespace,name,kind)\n            (cpaas_certificate_expiration_timestamp_seconds) - time()) /\n            (60*60*24)<=30"]
["cpaas-cluster-rules","集群通用告警策略\nCluster general rules","Kubernetes集群健康、运行状况、平台证书等相关的告警策略\nAlert Rules related to Kubernetes cluster health, operational status, platform credentials, etc.","集群","cpaas-system","自定义告警","严重","平台证书的到期时间即将到期(小于10天) <= 10d 且持续 1 分钟","(0< max by(cluster,node,namespace,name,kind)\n            (cpaas_certificate_expiration_timestamp_seconds) - time()) /\n            (60*60*24)<=10"]
["cpaas-cluster-rules","集群通用告警策略\nCluster general rules","Kubernetes集群健康、运行状况、平台证书等相关的告警策略\nAlert Rules related to Kubernetes cluster health, operational status, platform credentials, etc.","集群","cpaas-system","自定义告警","灾难","平台证书已到期 <= 0d 且持续 1 分钟","(max by(cluster,node,namespace,name,kind)\n            (cpaas_certificate_expiration_timestamp_seconds) - time()) /\n            (60*60*24)<=0"]
["cpaas-system-deployment-rules","deployment 通用告警策略（cpaas-system）\nDeployment general rules（cpaas-system namespace）","deployment 在命名空间 cpaas-system 的通用告警策略\nGeneral Alert Rules for deployment in namespace cpaas-system","全部部署","cpaas-system","指标告警","严重","计算组件下容器组的CPU使用率 > 90% 且持续 1 分钟","avg by (namespace,pod) (avg by(namespace,pod,container)\n            (container_cpu_usage_seconds_total_irate5m{namespace=\"cpaas-system\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\",container!=\"\",container!=\"POD\"})\n            / avg by(namespace,pod,container)\n            (kube_pod_container_resource_limits_cpu_cores{namespace=\"cpaas-system\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}))>0.9"]
["cpaas-system-deployment-rules","deployment 通用告警策略（cpaas-system）\nDeployment general rules（cpaas-system namespace）","deployment 在命名空间 cpaas-system 的通用告警策略\nGeneral Alert Rules for deployment in namespace cpaas-system","全部部署","cpaas-system","指标告警","严重","计算组件下容器组的内存使用率 > 90% 且持续 1 分钟","avg by (namespace,pod) (avg by(namespace,pod,container)\n            (container_memory_working_set_bytes{container!=\"POD\",container!=\"\",namespace=\"cpaas-system\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"})\n            / avg by(namespace,pod,container)\n            (kube_pod_container_resource_limits_memory_bytes{namespace=\"cpaas-system\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}))>0.9"]
["cpaas-system-deployment-rules","deployment 通用告警策略（cpaas-system）\nDeployment general rules（cpaas-system namespace）","deployment 在命名空间 cpaas-system 的通用告警策略\nGeneral Alert Rules for deployment in namespace cpaas-system","全部部署","cpaas-system","指标告警","严重","计算组件的可用容器组数 < 1 且持续 1 分钟","min by (namespace,deployment)\n            (kube_deployment_status_replicas_available{deployment=~\".+\",namespace=\"cpaas-system\"})\n            <1"]
["cpaas-system-deployment-rules","deployment 通用告警策略（cpaas-system）\nDeployment general rules（cpaas-system namespace）","deployment 在命名空间 cpaas-system 的通用告警策略\nGeneral Alert Rules for deployment in namespace cpaas-system","全部部署","cpaas-system","指标告警","严重","计算组件下容器组的状态 == 0 且持续1分钟","(       min by(namespace,pod)\n            (kube_pod_container_status_ready{namespace=\"cpaas-system\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}\n            * on (pod) group_left (created_by_kind) (max by\n            (namespace,pod,created_by_kind)\n            (kube_pod_info{created_by_kind=~\"ReplicaSet\"}))))==0"]
["cpaas-system-deployment-rules","deployment 通用告警策略（cpaas-system）\nDeployment general rules（cpaas-system namespace）","deployment 在命名空间 cpaas-system 的通用告警策略\nGeneral Alert Rules for deployment in namespace cpaas-system","全部部署","cpaas-system","指标告警","警告","计算组件下容器组最近5分钟的重启次数 > 0 且持续 1 分钟","sum by (namespace,pod)\n            (delta(kube_pod_container_status_restarts_total{namespace=\"cpaas-system\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}[5m]))>0"]
["kube-system-deployment-rules","deployment 通用告警策略（kube-system）\nDeployment general rules（kube-system namespace）","deployment 命名空间 kube-system 的通用告警策略\nGeneral Alert Rules for deployment in namespace kube-system","全部部署","kube-system","指标告警","严重","计算组件下容器组的CPU使用率 > 90% 且持续 1 分钟","avg by (namespace,pod) (avg by(namespace,pod,container)\n            (container_cpu_usage_seconds_total_irate5m{namespace=\"kube-system\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\",container!=\"\",container!=\"POD\"})\n            / avg by(namespace,pod,container)\n            (kube_pod_container_resource_limits_cpu_cores{namespace=\"kube-system\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}))>0.9"]
["kube-system-deployment-rules","deployment 通用告警策略（kube-system）\nDeployment general rules（kube-system namespace）","deployment 命名空间 kube-system 的通用告警策略\nGeneral Alert Rules for deployment in namespace kube-system","全部部署","kube-system","指标告警","严重","计算组件下容器组的内存使用率 > 90% 且持续 1 分钟","avg by (namespace,pod) (avg by(namespace,pod,container)\n            (container_memory_working_set_bytes{container!=\"POD\",container!=\"\",namespace=\"kube-system\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"})\n            / avg by(namespace,pod,container)\n            (kube_pod_container_resource_limits_memory_bytes{namespace=\"kube-system\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}))>0.9"]
["kube-system-deployment-rules","deployment 通用告警策略（kube-system）\nDeployment general rules（kube-system namespace）","deployment 命名空间 kube-system 的通用告警策略\nGeneral Alert Rules for deployment in namespace kube-system","全部部署","kube-system","指标告警","严重","计算组件的可用容器组数 < 1 且持续 1 分钟","min by (namespace,deployment)\n            (kube_deployment_status_replicas_available{deployment=~\".+\",namespace=\"kube-system\"})\n            <1"]
["kube-system-deployment-rules","deployment 通用告警策略（kube-system）\nDeployment general rules（kube-system namespace）","deployment 命名空间 kube-system 的通用告警策略\nGeneral Alert Rules for deployment in namespace kube-system","全部部署","kube-system","指标告警","严重","计算组件下容器组的状态 == 0 且持续1分钟","(       min by(namespace,pod)\n            (kube_pod_container_status_ready{namespace=\"kube-system\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}\n            * on (pod) group_left (created_by_kind) (max by\n            (namespace,pod,created_by_kind)\n            (kube_pod_info{created_by_kind=~\"ReplicaSet\"}))))==0"]
["kube-system-deployment-rules","deployment 通用告警策略（kube-system）\nDeployment general rules（kube-system namespace）","deployment 命名空间 kube-system 的通用告警策略\nGeneral Alert Rules for deployment in namespace kube-system","全部部署","kube-system","指标告警","警告","计算组件下容器组最近5分钟的重启次数 > 0 且持续 1 分钟","sum by (namespace,pod)\n            (delta(kube_pod_container_status_restarts_total{namespace=\"kube-system\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}[5m]))>0"]
["cert-manager-deployment-rules","deployment 通用告警策略（cert-manager）\nDeployment general rules（cert-manager namespace）","deployment 命名空间 cert-manager 的通用告警策略\nGeneral Alert Rules for deployment in namespace cert-manager","全部部署","cert-manager","指标告警","严重","计算组件下容器组的CPU使用率 > 90% 且持续 1 分钟","avg by (namespace,pod) (avg by(namespace,pod,container)\n            (container_cpu_usage_seconds_total_irate5m{namespace=\"kube-system\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\",container!=\"\",container!=\"POD\"})\n            / avg by(namespace,pod,container)\n            (kube_pod_container_resource_limits_cpu_cores{namespace=\"kube-system\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}))>0.9"]
["cert-manager-deployment-rules","deployment 通用告警策略（cert-manager）\nDeployment general rules（cert-manager namespace）","deployment 命名空间 cert-manager 的通用告警策略\nGeneral Alert Rules for deployment in namespace cert-manager","全部部署","cert-manager","指标告警","严重","计算组件下容器组的内存使用率 > 90% 且持续 1 分钟","avg by (namespace,pod) (avg by(namespace,pod,container)\n            (container_memory_working_set_bytes{container!=\"POD\",container!=\"\",namespace=\"cert-manager\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"})\n            / avg by(namespace,pod,container)\n            (kube_pod_container_resource_limits_memory_bytes{namespace=\"cert-manager\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}))>0.9"]
["cert-manager-deployment-rules","deployment 通用告警策略（cert-manager）\nDeployment general rules（cert-manager namespace）","deployment 命名空间 cert-manager 的通用告警策略\nGeneral Alert Rules for deployment in namespace cert-manager","全部部署","cert-manager","指标告警","严重","计算组件的可用容器组数 < 1 且持续 1 分钟","min by (namespace,deployment)\n            (kube_deployment_status_replicas_available{deployment=~\".+\",namespace=\"cert-manager\"})\n            <1"]
["cert-manager-deployment-rules","deployment 通用告警策略（cert-manager）\nDeployment general rules（cert-manager namespace）","deployment 命名空间 cert-manager 的通用告警策略\nGeneral Alert Rules for deployment in namespace cert-manager","全部部署","cert-manager","指标告警","严重","计算组件下容器组的状态 == 0 且持续1分钟","(       min by(namespace,pod)\n            (kube_pod_container_status_ready{namespace=\"cert-manager\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}\n            * on (pod) group_left (created_by_kind) (max by\n            (namespace,pod,created_by_kind)\n            (kube_pod_info{created_by_kind=~\"ReplicaSet\"}))))==0"]
["cert-manager-deployment-rules","deployment 通用告警策略（cert-manager）\nDeployment general rules（cert-manager namespace）","deployment 命名空间 cert-manager 的通用告警策略\nGeneral Alert Rules for deployment in namespace cert-manager","全部部署","cert-manager","指标告警","警告","计算组件下容器组最近5分钟的重启次数 > 0 且持续 1 分钟","sum by (namespace,pod)\n            (delta(kube_pod_container_status_restarts_total{namespace=\"cert-manager\",pod=~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}[5m]))>0"]
["cpaas-system-daemonset-rules","daemonset 通用告警策略（cpaas-system）\nDaemonset general rules（cpaas-system namespace）","daemonset 在命名空间 cpaas-system 的通用告警策略\nGeneral Alert Rules for Daemonset in namespace cpaas-system","全部守护进程集","cpaas-system","指标告警","严重","计算组件下容器组的CPU使用率 > 90% 且持续 1 分钟","avg by (namespace,pod) (avg by(namespace,pod,container)\n            (container_cpu_usage_seconds_total_irate5m{namespace=\"cpaas-system\",pod=~\".+-[a-z0-9]{5}\",\n            pod!~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\",container!=\"\",container!=\"POD\"})\n            / avg by(namespace,pod,container)\n            (kube_pod_container_resource_limits_cpu_cores{namespace=\"cpaas-system\",pod=~\".+-[a-z0-9]{5}\",\n            pod!~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}))>0.9"]
["cpaas-system-daemonset-rules","daemonset 通用告警策略（cpaas-system）\nDaemonset general rules（cpaas-system namespace）","daemonset 在命名空间 cpaas-system 的通用告警策略\nGeneral Alert Rules for Daemonset in namespace cpaas-system","全部守护进程集","cpaas-system","指标告警","严重","计算组件下容器组的内存使用率 > 90% 且持续 1 分钟","avg by (namespace,pod) (avg by(namespace,pod,container)\n            (container_memory_working_set_bytes{container!=\"POD\",container!=\"\",namespace=\"cpaas-system\",pod=~\".+-[a-z0-9]{5}\",\n            pod!~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}) / avg\n            by(namespace,pod,container)\n            (kube_pod_container_resource_limits_memory_bytes{namespace=\"cpaas-system\",pod=~\".+-[a-z0-9]{5}\",\n            pod!~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}))>0.9"]
["cpaas-system-daemonset-rules","daemonset 通用告警策略（cpaas-system）\nDaemonset general rules（cpaas-system namespace）","daemonset 在命名空间 cpaas-system 的通用告警策略\nGeneral Alert Rules for Daemonset in namespace cpaas-system","全部守护进程集","cpaas-system","指标告警","严重","计算组件的可用容器组数 < 1 且持续 1 分钟","min by (namespace,daemonset)\n            (kube_daemonset_status_number_available{daemonset=~\".+\",namespace=\"cpaas-system\"})\n            <1"]
["cpaas-system-daemonset-rules","daemonset 通用告警策略（cpaas-system）\nDaemonset general rules（cpaas-system namespace）","daemonset 在命名空间 cpaas-system 的通用告警策略\nGeneral Alert Rules for Daemonset in namespace cpaas-system","全部守护进程集","cpaas-system","指标告警","严重","计算组件下容器组的状态 == 0 且持续1分钟","(       min by(namespace,pod)\n            (kube_pod_container_status_ready{namespace=\"cpaas-system\",pod=~\".+-[a-z0-9]{5}\",\n            pod!~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"} * on (pod) group_left\n            (created_by_kind) (max by (namespace,pod,created_by_kind)\n            (kube_pod_info{created_by_kind=~\"DaemonSet\"}))))==0"]
["cpaas-system-daemonset-rules","daemonset 通用告警策略（cpaas-system）\nDaemonset general rules（cpaas-system namespace）","daemonset 在命名空间 cpaas-system 的通用告警策略\nGeneral Alert Rules for Daemonset in namespace cpaas-system","全部守护进程集","cpaas-system","指标告警","警告","计算组件下容器组最近5分钟的重启次数 > 0 且持续 1 分钟","sum by (namespace,pod)\n            (delta(kube_pod_container_status_restarts_total{namespace=\"cpaas-system\",pod=~\".+-[a-z0-9]{5}\",\n            pod!~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}[5m]))>0"]
["kube-system-daemonset-rules","daemonset 通用告警策略（kube-system）\nDaemonset general rules（kube-system namespace）","daemonset 在命名空间 kube-system 的通用告警策略\nGeneral Alert Rules for Daemonset in namespace kube-system","全部守护进程集","kube-system","指标告警","严重","计算组件下容器组的CPU使用率 > 90% 且持续 1 分钟","avg by (namespace,pod) (avg by(namespace,pod,container)\n            (container_cpu_usage_seconds_total_irate5m{namespace=\"kube-system\",pod=~\".+-[a-z0-9]{5}\",\n            pod!~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\",container!=\"\",container!=\"POD\"})\n            / avg by(namespace,pod,container)\n            (kube_pod_container_resource_limits_cpu_cores{namespace=\"kube-system\",pod=~\".+-[a-z0-9]{5}\",\n            pod!~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}))>0.9"]
["kube-system-daemonset-rules","daemonset 通用告警策略（kube-system）\nDaemonset general rules（kube-system namespace）","daemonset 在命名空间 kube-system 的通用告警策略\nGeneral Alert Rules for Daemonset in namespace kube-system","全部守护进程集","kube-system","指标告警","严重","计算组件下容器组的内存使用率 > 90% 且持续 1 分钟","avg by (namespace,pod) (avg by(namespace,pod,container)\n            (container_memory_working_set_bytes{container!=\"POD\",container!=\"\",namespace=\"kube-system\",pod=~\".+-[a-z0-9]{5}\",\n            pod!~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}) / avg\n            by(namespace,pod,container)\n            (kube_pod_container_resource_limits_memory_bytes{namespace=\"kube-system\",pod=~\".+-[a-z0-9]{5}\",\n            pod!~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}))>0.9"]
["kube-system-daemonset-rules","daemonset 通用告警策略（kube-system）\nDaemonset general rules（kube-system namespace）","daemonset 在命名空间 kube-system 的通用告警策略\nGeneral Alert Rules for Daemonset in namespace kube-system","全部守护进程集","kube-system","指标告警","严重","计算组件的可用容器组数 < 1 且持续 1 分钟","min by (namespace,daemonset)\n            (kube_daemonset_status_number_available{daemonset=~\".+\",namespace=\"kube-system\"})\n            <1"]
["kube-system-daemonset-rules","daemonset 通用告警策略（kube-system）\nDaemonset general rules（kube-system namespace）","daemonset 在命名空间 kube-system 的通用告警策略\nGeneral Alert Rules for Daemonset in namespace kube-system","全部守护进程集","kube-system","指标告警","严重","计算组件下容器组的状态 == 0 且持续1分钟","(       min by(namespace,pod)\n            (kube_pod_container_status_ready{namespace=\"kube-system\",pod=~\".+-[a-z0-9]{5}\",\n            pod!~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"} * on (pod) group_left\n            (created_by_kind) (max by (namespace,pod,created_by_kind)\n            (kube_pod_info{created_by_kind=~\"DaemonSet\"}))))==0"]
["kube-system-daemonset-rules","daemonset 通用告警策略（kube-system）\nDaemonset general rules（kube-system namespace）","daemonset 在命名空间 kube-system 的通用告警策略\nGeneral Alert Rules for Daemonset in namespace kube-system","全部守护进程集","kube-system","指标告警","警告","计算组件下容器组最近5分钟的重启次数 > 0 且持续 1 分钟","sum by (namespace,pod)\n            (delta(kube_pod_container_status_restarts_total{namespace=\"kube-system\",pod=~\".+-[a-z0-9]{5}\",\n            pod!~\".+-[a-z0-9]{7,10}-[a-z0-9]{5}\"}[5m]))>0"]
["cpaas-system-statefulset-rules","statefulset 通用告警策略（cpaas-system）\nStatefulset  general rules（cpaas-system namespace）","statefulset 在命名空间 cpaas-system 的通用告警策略\nGeneral Alert Rules for Statefulset in namespace cpaas-system","全部有状态副本集","cpaas-system","指标告警","严重","计算组件下容器组的CPU使用率 > 90% 且持续 1 分钟","avg by (namespace,pod) (avg by(namespace,pod,container)\n            (container_cpu_usage_seconds_total_irate5m{namespace=\"cpaas-system\",pod=~\".+-[0-9]{1,3}\",container!=\"\",container!=\"POD\"})\n            / avg by(namespace,pod,container)\n            (kube_pod_container_resource_limits_cpu_cores{namespace=\"cpaas-system\",pod=~\".+-[0-9]{1,3}\"}))>0.9"]
["cpaas-system-statefulset-rules","statefulset 通用告警策略（cpaas-system）\nStatefulset  general rules（cpaas-system namespace）","statefulset 在命名空间 cpaas-system 的通用告警策略\nGeneral Alert Rules for Statefulset in namespace cpaas-system","全部有状态副本集","cpaas-system","指标告警","严重","计算组件下容器组的内存使用率 > 90% 且持续 1 分钟","avg by (namespace,pod) (avg by(namespace,pod,container)\n            (container_memory_working_set_bytes{container!=\"POD\",container!=\"\",namespace=\"cpaas-system\",pod=~\".+-[0-9]{1,3}\"})\n            / avg by(namespace,pod,container)\n            (kube_pod_container_resource_limits_memory_bytes{namespace=\"cpaas-system\",pod=~\".+-[0-9]{1,3}\"}))>0.9"]
["cpaas-system-statefulset-rules","statefulset 通用告警策略（cpaas-system）\nStatefulset  general rules（cpaas-system namespace）","statefulset 在命名空间 cpaas-system 的通用告警策略\nGeneral Alert Rules for Statefulset in namespace cpaas-system","全部有状态副本集","cpaas-system","指标告警","严重","计算组件的可用容器组数 < 1 且持续 1 分钟","min by (namespace,statefulset)\n            (kube_statefulset_status_replicas_ready{statefulset=~\".+\",namespace=\"cpaas-system\"})\n            <1"]
["cpaas-system-statefulset-rules","statefulset 通用告警策略（cpaas-system）\nStatefulset  general rules（cpaas-system namespace）","statefulset 在命名空间 cpaas-system 的通用告警策略\nGeneral Alert Rules for Statefulset in namespace cpaas-system","全部有状态副本集","cpaas-system","指标告警","严重","计算组件下容器组的状态 == 0 且持续1分钟","(       min by(namespace,pod)\n            (kube_pod_container_status_ready{namespace=\"cpaas-system\",pod=~\".+-[0-9]{1,3}\"}\n            * on (pod) group_left (created_by_kind) (max by\n            (namespace,pod,created_by_kind)\n            (kube_pod_info{created_by_kind=~\"StatefulSet\"}))))==0"]
["cpaas-system-statefulset-rules","statefulset 通用告警策略（cpaas-system）\nStatefulset  general rules（cpaas-system namespace）","statefulset 在命名空间 cpaas-system 的通用告警策略\nGeneral Alert Rules for Statefulset in namespace cpaas-system","全部有状态副本集","cpaas-system","指标告警","警告","计算组件下容器组最近5分钟的重启次数 > 0 且持续 1 分钟","sum by (namespace,pod)\n            (delta(kube_pod_container_status_restarts_total{namespace=\"cpaas-system\",pod=~\".+-[0-9]{1,3}\"}[5m]))>0"]
["cpaas-monitor-rules","监控通用告警策略\nMonitor general rules","Cpaas平台监控相关组件的告警策略\nAlert Rules for the Cpaas platform component monitoring-related","集群","cpaas-system","自定义告警","警告","Prometheus获取Metrics的Service的可用性 != 1 且持续 1 分钟","max by (namespace, service)\n            (up{service!=\"kube-prometheus-exporter-dockerd\"})!=1"]
["cpaas-monitor-rules","监控通用告警策略\nMonitor general rules","Cpaas平台监控相关组件的告警策略\nAlert Rules for the Cpaas platform component monitoring-related","集群","cpaas-system","自定义告警","严重","Prometheus最近一次加载配置是否成功 != 1 且持续 1 分钟","max by (pod)\n            (prometheus_config_last_reload_successful{namespace=\"cpaas-system\",pod=~\"prometheus-kube-prometheus-0-[0-9]{1,3}\"})!=1"]
["cpaas-monitor-rules","监控通用告警策略\nMonitor general rules","Cpaas平台监控相关组件的告警策略\nAlert Rules for the Cpaas platform component monitoring-related","集群","cpaas-system","自定义告警","严重","集群内实时告警数 >= 50","(count(cpaas_active_alerts) or on() vector(0))>=50"]
["cpaas-log-rules","日志通用告警策略\nLog general rules","Cpaas平台日志相关组件的告警策略\nAlert Rules for the Cpaas platform component logging-related","集群","cpaas-system","自定义告警","严重","ES集群的状态 > 0 且持续 30 秒","max by(cluster) (es_cluster_status)>0"]
["cpaas-log-rules","日志通用告警策略\nLog general rules","Cpaas平台日志相关组件的告警策略\nAlert Rules for the Cpaas platform component logging-related","集群","cpaas-system","自定义告警","严重","ES磁盘使用率 > 70% 且持续 1 分钟","(es_fs_path_total_bytes - es_fs_path_free_bytes)\n            /es_fs_path_total_bytes>0.7"]
["cpaas-log-rules","日志通用告警策略\nLog general rules","Cpaas平台日志相关组件的告警策略\nAlert Rules for the Cpaas platform component logging-related","集群","cpaas-system","自定义告警","警告","ES节点写入队列长度 > 10 且持续 1 分钟","es_threadpool_tasks_number{name=\"write\",type=\"queue\"}>10"]
["cpaas-log-rules","日志通用告警策略\nLog general rules","Cpaas平台日志相关组件的告警策略\nAlert Rules for the Cpaas platform component logging-related","集群","cpaas-system","自定义告警","警告","Kafka消费队列滞后增长速率 > 5 且持续 1 分钟","max(rate(kafka_consumergroup_lag[5m])) by (topic, partition,\n            consumergroup)>5"]
["cpaas-log-rules","日志通用告警策略\nLog general rules","Cpaas平台日志相关组件的告警策略\nAlert Rules for the Cpaas platform component logging-related","集群","cpaas-system","自定义告警","警告","Kafka消费队列安全位移差 < 0 且持续 1 分钟","min(kafka_consumergroup_lead) by (topic, partition, consumergroup)<0"]
["cpaas-log-rules","日志通用告警策略\nLog general rules","Cpaas平台日志相关组件的告警策略\nAlert Rules for the Cpaas platform component logging-related","集群","cpaas-system","自定义告警","严重","Zookeeper集群内的实例状态 != 1 且持续 2 分钟","zk_up!=1"]