Alert problem with Stack + Percent Graph

Version: Grafana v4.6.3 (commit: 7a06a47)

The Alert function with “Stack + Percent” Graph doesn’t work for me.

Result of the test Rule is:

firing:true
state:""
conditionEvals:" = true"
timeMs:"0.927ms"
error:"tsdb.HandleRequest() error Missing query definition for non_negative_difference"

It has two simple InfluxDB queries:

SELECT non_negative_difference(mean("value")) FROM "series_a" WHERE ("value" > 0) AND $timeFilter GROUP BY time(10m) fill(none)

SELECT non_negative_difference(mean("value")) FROM "series_b" WHERE ("value" > 0) AND $timeFilter GROUP BY time(10m) fill(none)

I would like to create an alert that send a message after the series_b is below of 60% (if the 100% equal is series_a + series_b.

In another graph, with “normal” display settings, the alert works well on the same series…
Is it possible that the Alert function couldn’t working in “Stack + Percent” display method?

Hi,

Please note that the alerting rules are evaluated on the server side and uses the raw metric values received from queries. That means that display options for graph like stacking and percent do no matter to alert rules - they’re only for visualization.

Marcus

So is there is a way to do alerts on a metric which is visible in stack 100% bar chart? Like metric being below 60%?