Skip to content
Snippets Groups Projects
Commit e9312c04 authored by David H. Wilkins's avatar David H. Wilkins
Browse files

Enable alert_query transmission to the backend

- Added `alert_query` to be sent in the create / update request
  to the backend

- Added alert_query to prometheus_alerts table - allow nulls

- alerts can be added and updated

- added both (!ID) for specifying custom metrics to be alerted on

- PrometheusAlert expands (!ID) to the appropriate prometheus query
  ... added tests for that

- AlertParams converts (legend) into (!ID) so that the abbreviated
  query and full query can be distinquished and sent to the correct
  place

- abbreviated_query has replaces the (!ID) with the legend instead of
  the query
parent e6b4a14f
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment