hachouri
hachouri

Reputation: 1

Grafana Lod5m/ Cores

I'm trying to get a the result of the max_over_time load5m divided by the number of CPU cores I have a table with the below queries and both works

query D = max_over_time(node_load5{job=~"$node}[$interval])

query C = count(node_cpu_seconds_total{job=~"$node, mode="system"}) by (instance)

however dividing the two queries does not works

Appreciate your help

Upvotes: 0

Views: 294

Answers (1)

The labels in the two queries must match.

Query 1:

enter image description here

Query 2:

enter image description here

The labels don't match!

You need to add all labels in the "by" clause, like in the following example:

enter image description here

Upvotes: 0

Related Questions