mirror of
https://github.com/grafana/grafana.git
synced 2026-08-18 09:05:04 -05:00
Alerting: Skip query cache for alert queries (#39010)
This commit is contained in:
@@ -269,7 +269,8 @@ func (c *QueryCondition) getRequestForAlertRule(datasource *models.DataSource, t
|
||||
},
|
||||
},
|
||||
Headers: map[string]string{
|
||||
"FromAlert": "true",
|
||||
"FromAlert": "true",
|
||||
"X-Cache-Skip": "true",
|
||||
},
|
||||
Debug: debug,
|
||||
}
|
||||
|
||||
@@ -124,7 +124,8 @@ func GetExprRequest(ctx AlertExecCtx, data []models.AlertQuery, now time.Time) (
|
||||
OrgId: ctx.OrgID,
|
||||
Headers: map[string]string{
|
||||
// Some data sources check this in query method as sometimes alerting needs special considerations.
|
||||
"FromAlert": "true",
|
||||
"FromAlert": "true",
|
||||
"X-Cache-Skip": "true",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user