I’m using Grafana OSS 9.3.2 to create a new alert rule based on a Graphite data source.
I’ve defined two queries using metrics stored by collectd to Graphite. The intent of this rule is to alert when the server load exceeds the number of CPUs available on the server.
The two queries generate results with differing name labels and so the Alert Condition expression bellow can’t match the metrics in order to compare them.
What I’ve tried:
I’ve tried to use a Graphite aliasByNode() function to rename the query metrics to a common name (the name of the server). This works for the queries, but the Grafana expressions don’t use the query alias names, and so the match fails.
Below are the queries and expressions. As you can see, the metric names in the Reduce expressions don’t match, and that’s why the Math expression can’t compare the individual values.
Do you have any idea how to solve this so that I can use query T as the threshold for query A?