grafana/pkg/tsdb
Chris Cowan 3d7748d9f8
Elasticsearch: Use minimum interval for alerts (#30049)
The current backend code doesn't honor the minimum interval set in the UI for alerts using 
the Elasticsearch data source. This means that the data the alerts are triggering against 
will never match the data in the visualization if auto is used in the date histogram as interval. 
This fixes the problem to make sure that date histogram auto interval is set according to 
min interval set in UI for the query or fallback to data source min interval setting.

Fixes #22082

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2021-01-14 10:48:59 +01:00
..
azuremonitor Chore: Rewrite tsdb azuremonitor time grain test to standard library (#30089) 2021-01-06 20:16:53 +01:00
cloudmonitoring Chore: Rewrite tsdb cloudmonitoring test to standard library (#30090) 2021-01-06 20:42:48 +01:00
cloudwatch Cloudwatch: Move deep link creation to the backend (#30206) 2021-01-13 15:30:09 +01:00
elasticsearch Elasticsearch: Use minimum interval for alerts (#30049) 2021-01-14 10:48:59 +01:00
graphite Chore: Rewrite tsdb graphite test to standard library (#30088) 2021-01-06 20:14:25 +01:00
influxdb Chore: Rewrite tsdb influxdb test to standard library (#30091) 2021-01-07 09:31:34 +01:00
mssql Chore: Fix linting issues caught by ruleguard (#28799) 2020-11-17 11:27:45 +01:00
mysql Chore: Enable errorlint linter (#29227) 2020-11-19 14:47:17 +01:00
opentsdb Chore: Disable default golangci-lint filter (#29751) 2020-12-15 09:32:06 +01:00
postgres Chore: Enable exhaustive linter (#29458) 2020-12-01 09:53:27 +01:00
prometheus Chore: Rewrite tsdb prometheus test to standard library (#29592) 2020-12-04 08:49:39 +01:00
sqleng Chore: Disable default golangci-lint filter (#29751) 2020-12-15 09:32:06 +01:00
testdatasource Chore: Rewrite tsdb testdatasource scenarios test to standard library (#29591) 2020-12-03 21:31:01 +01:00
fake_test.go follow go idiom and return error as second param 2017-09-21 18:04:16 +02:00
frame_util.go Alerting: Add labels to name when converting data frame to series (#28085) 2020-10-09 08:21:16 -04:00
interval_test.go Chore: Convert tsdb interval test to standard library (#29935) 2020-12-20 09:43:06 +01:00
interval.go Chore: Enable gocyclo linter (#26395) 2020-09-07 22:10:06 +02:00
models.go Metrics API: Use jsoniter for JSON encoding (#30250) 2021-01-13 15:20:25 +01:00
query_endpoint.go Chore: Remove dead code (#28664) 2020-11-05 11:00:00 +01:00
request_test.go Chore: Convert tsdb request test to standard library (#29936) 2020-12-20 11:53:28 +01:00
request.go Chore: Fix issues reported by staticcheck; enable stylecheck linter (#28866) 2020-11-05 15:37:11 +01:00
time_range_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
time_range.go Core: add location option to parse timerange (#24796) 2020-05-19 08:52:43 +02:00