From 5e9d70938b5777489c3093aace722e5a64eef770 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 4 Dec 2020 03:23:46 +0000 Subject: [PATCH] assets,site/content: daily assets regeneration --- assets/kubernetes/rules.yaml | 14 ------------- site/content/kubernetes/_index.md | 34 ------------------------------- 2 files changed, 48 deletions(-) diff --git a/assets/kubernetes/rules.yaml b/assets/kubernetes/rules.yaml index e0515ae..69404bd 100644 --- a/assets/kubernetes/rules.yaml +++ b/assets/kubernetes/rules.yaml @@ -324,11 +324,6 @@ groups: quantile: "0.99" verb: write record: cluster_quantile:apiserver_request_duration_seconds:histogram_quantile - - expr: | - sum(rate(apiserver_request_duration_seconds_sum{subresource!="log",verb!~"LIST|WATCH|WATCHLIST|DELETECOLLECTION|PROXY|CONNECT"}[5m])) without(instance, pod) - / - sum(rate(apiserver_request_duration_seconds_count{subresource!="log",verb!~"LIST|WATCH|WATCHLIST|DELETECOLLECTION|PROXY|CONNECT"}[5m])) without(instance, pod) - record: cluster:apiserver_request_duration_seconds:mean5m - expr: | histogram_quantile(0.99, sum(rate(apiserver_request_duration_seconds_bucket{job="kube-apiserver",subresource!="log",verb!~"LIST|WATCH|WATCHLIST|DELETECOLLECTION|PROXY|CONNECT"}[5m])) without(instance, pod)) labels: @@ -505,9 +500,6 @@ groups: record: code:apiserver_request_total:increase30d - name: k8s.rules rules: - - expr: | - sum(rate(container_cpu_usage_seconds_total{job="cadvisor", image!="", container!="POD"}[5m])) by (namespace) - record: namespace:container_cpu_usage_seconds_total:sum_rate - expr: | sum by (cluster, namespace, pod, container) ( rate(container_cpu_usage_seconds_total{job="cadvisor", image!="", container!="POD"}[5m]) @@ -539,9 +531,6 @@ groups: max by(namespace, pod, node) (kube_pod_info{node!=""}) ) record: node_namespace_pod_container:container_memory_swap - - expr: | - sum(container_memory_usage_bytes{job="cadvisor", image!="", container!="POD"}) by (namespace) - record: namespace:container_memory_usage_bytes:sum - expr: | sum by (namespace) ( sum by (namespace, pod) ( @@ -650,9 +639,6 @@ groups: record: cluster_quantile:scheduler_binding_duration_seconds:histogram_quantile - name: node.rules rules: - - expr: | - sum(min(kube_pod_info{node!=""}) by (cluster, node)) - record: ':kube_pod_info_node_count:' - expr: | topk by(namespace, pod) (1, max by (node, namespace, pod) ( diff --git a/site/content/kubernetes/_index.md b/site/content/kubernetes/_index.md index ddf19f1..dfa209d 100644 --- a/site/content/kubernetes/_index.md +++ b/site/content/kubernetes/_index.md @@ -1469,16 +1469,6 @@ labels: record: cluster_quantile:apiserver_request_duration_seconds:histogram_quantile {{< /code >}} -##### cluster:apiserver_request_duration_seconds:mean5m - -{{< code lang="yaml" >}} -expr: | - sum(rate(apiserver_request_duration_seconds_sum{subresource!="log",verb!~"LIST|WATCH|WATCHLIST|DELETECOLLECTION|PROXY|CONNECT"}[5m])) without(instance, pod) - / - sum(rate(apiserver_request_duration_seconds_count{subresource!="log",verb!~"LIST|WATCH|WATCHLIST|DELETECOLLECTION|PROXY|CONNECT"}[5m])) without(instance, pod) -record: cluster:apiserver_request_duration_seconds:mean5m -{{< /code >}} - ##### cluster_quantile:apiserver_request_duration_seconds:histogram_quantile {{< code lang="yaml" >}} @@ -1814,14 +1804,6 @@ record: code:apiserver_request_total:increase30d ### k8s.rules -##### namespace:container_cpu_usage_seconds_total:sum_rate - -{{< code lang="yaml" >}} -expr: | - sum(rate(container_cpu_usage_seconds_total{job="cadvisor", image!="", container!="POD"}[5m])) by (namespace) -record: namespace:container_cpu_usage_seconds_total:sum_rate -{{< /code >}} - ##### node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate {{< code lang="yaml" >}} @@ -1878,14 +1860,6 @@ expr: | record: node_namespace_pod_container:container_memory_swap {{< /code >}} -##### namespace:container_memory_usage_bytes:sum - -{{< code lang="yaml" >}} -expr: | - sum(container_memory_usage_bytes{job="cadvisor", image!="", container!="POD"}) by (namespace) -record: namespace:container_memory_usage_bytes:sum -{{< /code >}} - ##### namespace:kube_pod_container_resource_requests_memory_bytes:sum {{< code lang="yaml" >}} @@ -2064,14 +2038,6 @@ record: cluster_quantile:scheduler_binding_duration_seconds:histogram_quantile ### node.rules -##### ':kube_pod_info_node_count:' - -{{< code lang="yaml" >}} -expr: | - sum(min(kube_pod_info{node!=""}) by (cluster, node)) -record: ':kube_pod_info_node_count:' -{{< /code >}} - ##### 'node_namespace_pod:kube_pod_info:' {{< code lang="yaml" >}}