Alerting: Skip query cache for alert queries (#39010)

This commit is contained in:
Todd Treece
2021-09-09 16:16:05 +02:00
committed by GitHub
parent 6c2884ac37
commit 6e667cacee
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -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,
}
+2 -1
View File
@@ -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",
},
}