Reputation: 1
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
Reputation: 22321
The labels in the two queries must match.
Query 1:
Query 2:
The labels don't match!
You need to add all labels in the "by" clause, like in the following example:
Upvotes: 0