I need a way to add a Dropdown menu ( or similar solution ) to show the metrics for only one cpu ( cpu 1 or cpu 0 ). Is this possible? The metric is node_cpu_seconds_total
Asked
Active
Viewed 1.4k times
1 Answers
7
- Create a custom variable named "cpu" with values 0 and 1 in Dashboard settings > Variables > New
- Create the graph panel using the cpu variable (use the ":pipe" suffix to enable the use of 0 and 1 options at the same time)
- The CPU can be selected in the dropdown menu

Marcelo Ávila de Oliveira
- 19,950
- 3
- 39
- 50
-
Is there a way to show that metric for only one node too? – xRobot Apr 26 '21 at 14:47
-
1Check the syntax, maybe you wrote something wrong. You can select any label you want (instance, mode, etc) using the same strategy. – Marcelo Ávila de Oliveira Apr 26 '21 at 15:04
-
Do you have the "$instance" variable that I used in my example? I bet you not. Change to "localhost:9100" that exists in your case. – Marcelo Ávila de Oliveira Apr 26 '21 at 17:01