Alerting: Fix file import/export of recording rules with target datasource uid (#115663)

Alerting: Fix export of recording rules with target datasource uid
This commit is contained in:
Alexander Akhmetov
2025-12-23 11:26:15 +01:00
committed by GitHub
parent 096208202e
commit 84120fb210
13 changed files with 426 additions and 59 deletions
@@ -53,6 +53,26 @@
"exec_err_state": "Alerting",
"missing_series_evals_to_resolve": 2
}
},
{
"grafana_alert": {
"title": "RecordingRule1",
"data": [
{
"refId": "A",
"datasourceUid": "__expr__",
"model": {
"expression": "1 + 1",
"type": "math"
}
}
],
"record": {
"metric": "test_metric",
"from": "A",
"target_datasource_uid": "test-datasource-uid"
}
}
}
]
}