mirror of
https://github.com/monitoring-mixins/website.git
synced 2024-12-14 11:37:31 +00:00
assets,site/content: daily assets regeneration
This commit is contained in:
parent
1e76d5d42e
commit
5703eed319
2 changed files with 33 additions and 12 deletions
|
@ -644,11 +644,11 @@ groups:
|
|||
))
|
||||
record: 'node_namespace_pod:kube_pod_info:'
|
||||
- expr: |
|
||||
count by (cluster, node) (sum by (node, cpu) (
|
||||
node_cpu_seconds_total{job="node-exporter"}
|
||||
* on (namespace, pod) group_left(node)
|
||||
count by (cluster, node) (
|
||||
node_cpu_seconds_total{mode="idle",job="node-exporter"}
|
||||
* on (namespace, pod) group_left(node)
|
||||
topk by(namespace, pod) (1, node_namespace_pod:kube_pod_info:)
|
||||
))
|
||||
)
|
||||
record: node:node_num_cpu:sum
|
||||
- expr: |
|
||||
sum(
|
||||
|
@ -662,8 +662,16 @@ groups:
|
|||
) by (cluster)
|
||||
record: :node_memory_MemAvailable_bytes:sum
|
||||
- expr: |
|
||||
sum(rate(node_cpu_seconds_total{job="node-exporter",mode!="idle",mode!="iowait",mode!="steal"}[5m])) /
|
||||
count(sum(node_cpu_seconds_total{job="node-exporter"}) by (cluster, instance, cpu))
|
||||
avg by (cluster, node) (
|
||||
sum without (mode) (
|
||||
rate(node_cpu_seconds_total{mode!="idle",mode!="iowait",mode!="steal",job="node-exporter"}[5m])
|
||||
)
|
||||
)
|
||||
record: node:node_cpu_utilization:ratio_rate5m
|
||||
- expr: |
|
||||
avg by (cluster) (
|
||||
node:node_cpu_utilization:ratio_rate5m
|
||||
)
|
||||
record: cluster:node_cpu:ratio_rate5m
|
||||
- name: kubelet.rules
|
||||
rules:
|
||||
|
|
|
@ -2100,11 +2100,11 @@ record: 'node_namespace_pod:kube_pod_info:'
|
|||
|
||||
{{< code lang="yaml" >}}
|
||||
expr: |
|
||||
count by (cluster, node) (sum by (node, cpu) (
|
||||
node_cpu_seconds_total{job="node-exporter"}
|
||||
* on (namespace, pod) group_left(node)
|
||||
count by (cluster, node) (
|
||||
node_cpu_seconds_total{mode="idle",job="node-exporter"}
|
||||
* on (namespace, pod) group_left(node)
|
||||
topk by(namespace, pod) (1, node_namespace_pod:kube_pod_info:)
|
||||
))
|
||||
)
|
||||
record: node:node_num_cpu:sum
|
||||
{{< /code >}}
|
||||
|
||||
|
@ -2124,12 +2124,25 @@ expr: |
|
|||
record: :node_memory_MemAvailable_bytes:sum
|
||||
{{< /code >}}
|
||||
|
||||
##### node:node_cpu_utilization:ratio_rate5m
|
||||
|
||||
{{< code lang="yaml" >}}
|
||||
expr: |
|
||||
avg by (cluster, node) (
|
||||
sum without (mode) (
|
||||
rate(node_cpu_seconds_total{mode!="idle",mode!="iowait",mode!="steal",job="node-exporter"}[5m])
|
||||
)
|
||||
)
|
||||
record: node:node_cpu_utilization:ratio_rate5m
|
||||
{{< /code >}}
|
||||
|
||||
##### cluster:node_cpu:ratio_rate5m
|
||||
|
||||
{{< code lang="yaml" >}}
|
||||
expr: |
|
||||
sum(rate(node_cpu_seconds_total{job="node-exporter",mode!="idle",mode!="iowait",mode!="steal"}[5m])) /
|
||||
count(sum(node_cpu_seconds_total{job="node-exporter"}) by (cluster, instance, cpu))
|
||||
avg by (cluster) (
|
||||
node:node_cpu_utilization:ratio_rate5m
|
||||
)
|
||||
record: cluster:node_cpu:ratio_rate5m
|
||||
{{< /code >}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue