No data in the alert rule, but having returned data in the dashboard

Hi all, I have two queries using Infinity Data source in the dashboard, and they always return data back. The data is time series data, and they can be shown in the dashboard with “Time series” visualization. By the way, those two queries are hard-coded with a fixed time range in the query params, so I can ensure that they can always return the same data set.

Using this dashboard as a base, I create an alert rule with the same queries. But, the alert rule always reports “DatasourceNoData” alert. Even if I “preview” the alert condition, it also shows “No data”.

From the information of the alert, “ref_id A,B” seems to indicate that the data set A and B from those two queries have no data returned. But, as mentioned above, the same queries return data back in the dashboard.

Do I miss anything, or misconfigure the alert rule?

But dashboard query uses last 90 days period and alert only last hour period. So are you sure that you have some data in last hour?

To use alert with infinity, you need to use backend parser.

1 Like

@yesoreyeram , thanks for your help. This issue is resolved.

By the way, are you one of the developers of infinity? Your name is accidentally the prefix of the default data source name (yesoreyeram-infinity-datasource) of infinity.

1 Like

Yes I am the initial author of the plugin and the plugin id contains my id. :disappointed: Sorry if that causing any trouble

Don’t worry. Not a problem at all.