Alerting: Rule evaluator to get cached data source info (#61305)

do not skip cache when get data source info
This commit is contained in:
Yuri Tseretyan 2023-01-18 14:25:11 -05:00 committed by GitHub
parent 44b11d3228
commit 2c46f46d37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,7 +270,7 @@ func getExprRequest(ctx EvaluationContext, data []models.AlertQuery, dsCacheServ
if expr.IsDataSource(q.DatasourceUID) {
ds = expr.DataSourceModel()
} else {
ds, err = dsCacheService.GetDatasourceByUID(ctx.Ctx, q.DatasourceUID, ctx.User, true)
ds, err = dsCacheService.GetDatasourceByUID(ctx.Ctx, q.DatasourceUID, ctx.User, false /*skipCache*/)
if err != nil {
return nil, fmt.Errorf("failed to build query '%s': %w", q.RefID, err)
}