From 267cb741c57d1bfa026d2abc12a517f289162497 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 31 Dec 2020 03:39:11 +0000 Subject: [PATCH] assets,site/content: daily assets regeneration --- assets/kubernetes/alerts.yaml | 12 ++++++++++++ site/content/kubernetes/_index.md | 18 ++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/assets/kubernetes/alerts.yaml b/assets/kubernetes/alerts.yaml index 08cbafd..aa55a12 100644 --- a/assets/kubernetes/alerts.yaml +++ b/assets/kubernetes/alerts.yaml @@ -550,6 +550,18 @@ groups: for: 15m labels: severity: critical + - alert: KubeAPITerminatedRequests + annotations: + description: The apiserver has terminated {{ $value | humanizePercentage }} + of its incoming requests. + runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeapiterminatedrequests + summary: The apiserver has terminated {{ $value | humanizePercentage }} of its + incoming requests. + expr: | + sum(rate(apiserver_request_terminations_total{job="kube-apiserver"}[10m])) / ( sum(rate(apiserver_request_total{job="kube-apiserver"}[10m])) + sum(rate(apiserver_request_terminations_total{job="kube-apiserver"}[10m])) ) > 0.20 + for: 5m + labels: + severity: warning - name: kubernetes-system-kubelet rules: - alert: KubeNodeNotReady diff --git a/site/content/kubernetes/_index.md b/site/content/kubernetes/_index.md index 584dbdb..373d56a 100644 --- a/site/content/kubernetes/_index.md +++ b/site/content/kubernetes/_index.md @@ -790,6 +790,24 @@ labels: severity: critical {{< /code >}} +##### KubeAPITerminatedRequests +https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeapiterminatedrequests + +{{< code lang="yaml" >}} +alert: KubeAPITerminatedRequests +annotations: + description: The apiserver has terminated {{ $value | humanizePercentage }} of its + incoming requests. + runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeapiterminatedrequests + summary: The apiserver has terminated {{ $value | humanizePercentage }} of its incoming + requests. +expr: | + sum(rate(apiserver_request_terminations_total{job="kube-apiserver"}[10m])) / ( sum(rate(apiserver_request_total{job="kube-apiserver"}[10m])) + sum(rate(apiserver_request_terminations_total{job="kube-apiserver"}[10m])) ) > 0.20 +for: 5m +labels: + severity: warning +{{< /code >}} + ### kubernetes-system-kubelet ##### KubeNodeNotReady