Possible to create an alert that relies two queries? No data on second query

Hello,

I am able to successfully create an alert using CloudWatch Log Insights query syntax for a single query. But now I’d like to use two queries and compare their values before alerting.

When I hit preview, it seems like only one of the queries is returning data. Does anyone know if this is a Grafana limitation? My queries are identical in set up and the only difference is the lookback period (65 seconds vs 600 seconds).

I’ve attached an image. You can see the first query has a drawn chart, while the second query returns no data.


Thank you

You should be able to do that. Can you paste the second query in explore view and see if there’s some data? Also notice that range is different (first one is now - 1h, the second is now - 15m - I don’t know if that’s important but well… :smile:). I’ve seen alerts with around ten queries (Prometheus datasource but still), so it shouldn’t be Grafana limitation.

Thanks for replying Dawid.

When I paste the second query into the area for the first query, I get data. The two queries are identical, except for a longer lookback period.

I tried changing the time ranges to match the queries, or to match each other, but the second query still comes up with “no data”.