grafana/pkg/services/ngalert/eval
Ryan McKinley 2754e4fdf0
Expressions: use datasource model from the query (#41376)
* refactor datasource loading

* refactor datasource loading

* pass uid

* use dscache in alerting to get DS

* remove expr/translate pacakge

* remove dup injection entry

* fix DS type on metrics endpoint, remove SQL DS lookup inside SSE

* update test and adapter

* comment fix

* Make eval run as admin when getting datasource info

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* fmt and comment

* remove unncessary/redundant code

Co-authored-by: Kyle Brandt <kyle@grafana.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
Co-authored-by: Santiago <santiagohernandez.1997@gmail.com>
2021-12-16 13:51:46 -03:00
..
eval_test.go Alerting: Add Ref ID to DatasourceNoData and DatasourceError alerts (#42630) 2021-12-03 09:55:16 +00:00
eval.go Expressions: use datasource model from the query (#41376) 2021-12-16 13:51:46 -03:00
extract_md_test.go Expand the value of math and reduce expressions in annotations and labels (#36611) 2021-07-15 13:10:56 +01:00
extract_md.go Expand the value of math and reduce expressions in annotations and labels (#36611) 2021-07-15 13:10:56 +01:00