grafana/pkg/tsdb
Marcus Efraimsson 5713048f48
Alerting: Improve alert rule testing (#16286)
* tsdb: add support for setting debug flag of tsdb query

* alerting: adds debug flag in eval context

Debug flag is set when testing an alert rule and this debug
flag is used to return more debug information in test aler rule
response. This debug flag is also provided to tsdb queries so
datasources can optionally add support for returning additional
debug data

* alerting: improve test alert rule ui

Adds buttons for expand/collapse json and copy json to clipboard,
very similar to how the query inspector works.

* elasticsearch: implement support for tsdb query debug flag

* elasticsearch: embedding client response in struct

* alerting: return proper query model when testing rule
2019-06-25 08:52:17 +02:00
..
azuremonitor Azuremonitor: multiple subscription support for alerting (#17195) 2019-05-21 12:28:30 +02:00
cloudwatch Cloudwatch: Add AWS DocDB metrics (#17241) 2019-06-05 08:49:48 +02:00
elasticsearch Alerting: Improve alert rule testing (#16286) 2019-06-25 08:52:17 +02:00
graphite move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
influxdb move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
mssql MySQL/Postgres/MSSQL: Add parsing for day, weeks and year intervals in macros (#13086) 2019-05-30 09:58:29 +02:00
mysql MySQL/Postgres/MSSQL: Add parsing for day, weeks and year intervals in macros (#13086) 2019-05-30 09:58:29 +02:00
opentsdb move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
postgres MySQL/Postgres/MSSQL: Add parsing for day, weeks and year intervals in macros (#13086) 2019-05-30 09:58:29 +02:00
prometheus Prometheus: Preallocate data for Prometheus backend response parsing (#17490) 2019-06-10 08:12:46 +02:00
stackdriver move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
testdata testdata: logs scenario (#17182) 2019-05-21 09:21:59 +02:00
fake_test.go follow go idiom and return error as second param 2017-09-21 18:04:16 +02:00
interval_test.go azuremonitor: fix auto interval calculation on backend 2019-02-11 13:27:08 +01:00
interval.go interval: make the FormatDuration function public 2019-02-11 11:25:51 +01:00
models.go Alerting: Improve alert rule testing (#16286) 2019-06-25 08:52:17 +02:00
query_endpoint.go follow go idiom and return error as second param 2017-09-21 18:04:16 +02:00
request.go follow go idiom and return error as second param 2017-09-21 18:04:16 +02:00
sql_engine_test.go let each sql datasource handle timeFrom and timeTo macros 2018-11-30 14:30:02 +01:00
sql_engine.go move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
time_range_test.go build: fix integer overflow in pkg/tsdb tests on 32bit platforms (#16818) 2019-05-06 09:27:45 +02:00
time_range.go Outdent code after if block that ends with return (golint) 2018-04-27 23:10:43 +02:00
tsdb_test.go follow go idiom and return error as second param 2017-09-21 18:04:16 +02:00