From 25e2d9f152b634d65123ef11342aceb23e66a1a2 Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Fri, 8 Jun 2018 14:01:05 +0100 Subject: [PATCH] Update example console template for node exporter 0.16.0 (#4208) Signed-off-by: Brian Brazil --- consoles/node-cpu.html | 14 +++++++------- consoles/node-disk.html | 18 +++++++++--------- consoles/node-overview.html | 38 ++++++++++++++++++------------------- consoles/node.html | 4 ++-- 4 files changed, 37 insertions(+), 37 deletions(-) diff --git a/consoles/node-cpu.html b/consoles/node-cpu.html index 50c46a2fe..d6c515d2d 100644 --- a/consoles/node-cpu.html +++ b/consoles/node-cpu.html @@ -2,9 +2,9 @@ {{ template "prom_right_table_head" }} - CPU(s): {{ template "prom_query_drilldown" (args (printf "scalar(count(count by (cpu)(node_cpu{job='node',instance='%s'})))" .Params.instance)) }} + CPU(s): {{ template "prom_query_drilldown" (args (printf "scalar(count(count by (cpu)(node_cpu_seconds_total{job='node',instance='%s'})))" .Params.instance)) }} -{{ range printf "sum by (mode)(irate(node_cpu{job='node',instance='%s'}[5m])) * 100 / scalar(count(count by (cpu)(node_cpu{job='node',instance='%s'})))" .Params.instance .Params.instance | query | sortByLabel "mode" }} +{{ range printf "sum by (mode)(irate(node_cpu_seconds_total{job='node',instance='%s'}[5m])) * 100 / scalar(count(count by (cpu)(node_cpu_seconds_total{job='node',instance='%s'})))" .Params.instance .Params.instance | query | sortByLabel "mode" }} {{ .Labels.mode | title }} CPU {{ .Value | printf "%.1f" }}% @@ -21,15 +21,15 @@ Forks - {{ template "prom_query_drilldown" (args (printf "irate(node_forks{job='node',instance='%s'}[5m])" .Params.instance) "/s" "humanize") }} + {{ template "prom_query_drilldown" (args (printf "irate(node_forks_total{job='node',instance='%s'}[5m])" .Params.instance) "/s" "humanize") }} Context Switches - {{ template "prom_query_drilldown" (args (printf "irate(node_context_switches{job='node',instance='%s'}[5m])" .Params.instance) "/s" "humanize") }} + {{ template "prom_query_drilldown" (args (printf "irate(node_context_switches_total{job='node',instance='%s'}[5m])" .Params.instance) "/s" "humanize") }} Interrupts - {{ template "prom_query_drilldown" (args (printf "irate(node_intr{job='node',instance='%s'}[5m])" .Params.instance) "/s" "humanize") }} + {{ template "prom_query_drilldown" (args (printf "irate(node_intr_total{job='node',instance='%s'}[5m])" .Params.instance) "/s" "humanize") }} 1m Loadavg @@ -47,9 +47,9 @@