From 50c3264353d68c4788c52d6ea8fe047e8e0fe9aa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 4 Sep 2021 03:23:06 +0000 Subject: [PATCH] assets,site/content: daily assets regeneration --- assets/node-exporter/rules.yaml | 6 ++---- site/content/node-exporter/_index.md | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/assets/node-exporter/rules.yaml b/assets/node-exporter/rules.yaml index aa94c6e..b360982 100644 --- a/assets/node-exporter/rules.yaml +++ b/assets/node-exporter/rules.yaml @@ -2,10 +2,8 @@ groups: - name: node-exporter.rules rules: - expr: | - count without (cpu) ( - count without (mode) ( - node_cpu_seconds_total{job="node"} - ) + count without (cpu, mode) ( + node_cpu_seconds_total{job="node",mode="idle"} ) record: instance:node_num_cpu:sum - expr: | diff --git a/site/content/node-exporter/_index.md b/site/content/node-exporter/_index.md index a5e8f78..f2e9143 100644 --- a/site/content/node-exporter/_index.md +++ b/site/content/node-exporter/_index.md @@ -352,10 +352,8 @@ Complete list of pregenerated recording rules is available [here](https://github {{< code lang="yaml" >}} expr: | - count without (cpu) ( - count without (mode) ( - node_cpu_seconds_total{job="node"} - ) + count without (cpu, mode) ( + node_cpu_seconds_total{job="node",mode="idle"} ) record: instance:node_num_cpu:sum {{< /code >}}