Process dashboard: show number of available CPUs
Change-Id: Ifbf13edb2dfa8f5cee64aea3f9dca006d419ef20
diff --git a/dashboards/gerrit_process.json b/dashboards/gerrit_process.json
index e2e3fe0..6541a79 100644
--- a/dashboards/gerrit_process.json
+++ b/dashboards/gerrit_process.json
@@ -250,7 +250,13 @@
"pointradius": 2,
"points": false,
"renderer": "flot",
- "seriesOverrides": [],
+ "seriesOverrides": [
+ {
+ "alias": "available CPUs",
+ "color": "#1F60C4",
+ "fill": 0
+ }
+ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
@@ -259,6 +265,11 @@
"expr": "rate(proc_cpu_usage{instance=\"$instance\"}[5m])",
"legendFormat": "used CPUs",
"refId": "A"
+ },
+ {
+ "expr": "proc_cpu_num_cores{instance=\"$instance\"}",
+ "legendFormat": "available CPUs",
+ "refId": "B"
}
],
"thresholds": [],