mirror of
https://github.com/grafana/grafana.git
synced 2024-11-24 09:50:29 -06:00
Alerting: Add header X-Grafana-Org-Id to evaluation requests (#58972)
This commit is contained in:
parent
4aa5dea96b
commit
b57689e07e
@ -226,6 +226,7 @@ func buildDatasourceHeaders(ctx EvaluationContext) map[string]string {
|
||||
key, ok := models.RuleKeyFromContext(ctx.Ctx)
|
||||
if ok {
|
||||
headers["X-Rule-Uid"] = key.UID
|
||||
headers["X-Grafana-Org-Id"] = strconv.FormatInt(key.OrgID, 10)
|
||||
}
|
||||
|
||||
return headers
|
||||
|
Loading…
Reference in New Issue
Block a user