Merge pull request #1202 from prashbnair/kube-mixin

This commit is contained in:
Paweł Krupa 2021-06-12 13:36:39 +02:00 committed by GitHub
commit 11778868b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2143 additions and 2428 deletions

View File

@ -48,8 +48,8 @@
"subdir": ""
}
},
"version": "faf65d6fe38b2fd279b60e2f0581b2d0cb878d01",
"sum": "qDZhql8zB/4DNjniC5N8s26YcnYj6oZ6PBWTCUjB2t4="
"version": "8524aa43d49914b170b84816fc182319da04a167",
"sum": "J06UiBvcfpRzLM5VbLRAhP39Zaz+EKguJ5sSTBDeygs="
},
{
"source": {

File diff suppressed because it is too large Load Diff

View File

@ -18,7 +18,7 @@ spec:
runbook_url: https://github.com/prometheus-operator/kube-prometheus/wiki/kubepodcrashlooping
summary: Pod is crash looping.
expr: |
rate(kube_pod_container_status_restarts_total{job="kube-state-metrics"}[10m]) * 60 * 5 > 0
increase(kube_pod_container_status_restarts_total{job="kube-state-metrics"}[10m]) > 0
for: 15m
labels:
severity: warning
@ -1199,11 +1199,11 @@ spec:
rules:
- expr: |
sum by (cluster, namespace, pod, container) (
rate(container_cpu_usage_seconds_total{job="kubelet", metrics_path="/metrics/cadvisor", image!=""}[5m])
irate(container_cpu_usage_seconds_total{job="kubelet", metrics_path="/metrics/cadvisor", image!=""}[5m])
) * on (cluster, namespace, pod) group_left(node) topk by (cluster, namespace, pod) (
1, max by(cluster, namespace, pod, node) (kube_pod_info{node!=""})
)
record: node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate
record: node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate
- expr: |
container_memory_working_set_bytes{job="kubelet", metrics_path="/metrics/cadvisor", image!=""}
* on (namespace, pod) group_left(node) topk by(namespace, pod) (1,