grafana/pkg/plugins
Sofia Papagiannaki 43f580c299
AlertingNG: manage and evaluate alert definitions via the API (#28377)
* Alerting NG: prototype v2 (WIP)

* Separate eval package

* Modify eval alert definition endpoint

* Disable migration if ngalert is not enabled

* Remove premature test

* Fix lint issues

* Delete obsolete struct

* Apply suggestions from code review

* Update pkg/services/ngalert/ngalert.go

Co-authored-by: Kyle Brandt <kyle@grafana.com>

* Add API endpoint for listing alert definitions

* Introduce index for alert_definition table

* make ds object for expression to avoid panic

* wrap error

* Update pkg/services/ngalert/eval/eval.go

* Swith to backend.DataQuery

* Export TransformWrapper callback

* Fix lint issues

* Update pkg/services/ngalert/ngalert.go

Co-authored-by: Kyle Brandt <kyle@grafana.com>

* Validate alert definitions before storing them

* Introduce AlertQuery

* Add test

* Add QueryType in AlertQuery

* Accept only float64 (seconds) durations

* Apply suggestions from code review

* Get rid of bus

* Do not export symbols

* Fix failing test

* Fix failure due to service initialization order

Introduce MediumHigh service priority and assign it to backendplugin
service

* Fix test

* Apply suggestions from code review

* Fix renamed reference

Co-authored-by: Kyle Brandt <kyle@grafana.com>
2020-11-12 15:11:30 +02:00
..
backendplugin AlertingNG: manage and evaluate alert definitions via the API (#28377) 2020-11-12 15:11:30 +02:00
datasource/wrapper Chore: Fix issues reported by staticcheck; enable stylecheck linter (#28866) 2020-11-05 15:37:11 +01:00
testdata plugins: Don't exit on duplicate plugin (#28390) 2020-10-21 12:39:41 +02:00
app_plugin.go App Plugins: Add backend support (#28272) 2020-10-21 09:10:54 +02:00
backend_utils.go Chore: Fix various spelling errors in back-end code (#25241) 2020-06-01 17:11:25 +02:00
dashboard_importer_test.go DashboardImport: Fix variable interpolation when property contains multiple variable expressions (#26574) 2020-07-24 11:12:44 +03:00
dashboard_importer.go Chore: Fix issues reported by staticcheck; enable stylecheck linter (#28866) 2020-11-05 15:37:11 +01:00
dashboards_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
dashboards_updater.go Plugins: Fix manifest verification (#24573) 2020-05-12 15:48:24 +02:00
dashboards.go chore: avoid alias for models in plugins (#22483) 2020-02-28 12:51:21 +01:00
datasource_plugin.go Plugins: Compose filesystem paths with filepath.Join (#28375) 2020-10-19 17:35:31 +02:00
error.go Plugins: Track plugin signing errors and expose them to the frontend (#28219) 2020-10-23 16:45:43 +02:00
frontend_plugin_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
frontend_plugin.go Plugins: Fix plugin URL paths on Windows (#28548) 2020-10-26 18:31:27 +01:00
manifest_test.go Plugins: Fix manifest verification (#24573) 2020-05-12 15:48:24 +02:00
manifest.go Plugins: Let descendant plugins inherit their root's signature (#27970) 2020-10-05 13:28:18 +02:00
models.go Plugins: Track plugin signing errors and expose them to the frontend (#28219) 2020-10-23 16:45:43 +02:00
panel_plugin.go Plugins: Let descendant plugins inherit their root's signature (#27970) 2020-10-05 13:28:18 +02:00
plugins_test.go plugins: Don't exit on duplicate plugin (#28390) 2020-10-21 12:39:41 +02:00
plugins.go Plugins: allow override when allowing unsigned plugins (#28901) 2020-11-09 09:50:23 +01:00
queries.go Provisioning: Adds support for enabling app plugins (#25649) 2020-06-22 17:49:13 +02:00
renderer_plugin.go Plugins: Compose filesystem paths with filepath.Join (#28375) 2020-10-19 17:35:31 +02:00
transform_plugin.go AlertingNG: manage and evaluate alert definitions via the API (#28377) 2020-11-12 15:11:30 +02:00
update_checker.go Chore: Enable goprintffuncname and nakedret linters (#26376) 2020-07-23 08:14:39 +02:00