grafana/pkg/tsdb
Erik Sundell a111cc0d5c
Stackdriver: Support for SLO queries (#22917)
* wip: add slo support

* Export DataSourcePlugin

* wip: break out metric query editor into its own component

* wip: refactor frontend - keep SLO and Metric query in differnt objects

* wip - load services and slos

* Fix broken test

* Add interactive slo expression builder

* Change order of dropdowns

* Refactoring backend model. slo unit testing in progress

* Unit test migration and SLOs

* Cleanup SLO editor

* Simplify alias by component

* Support alias by for slos

* Support slos in variable queries

* Fix broken last query error

* Update Help section to include SLO aliases

* streamline datasource resource cache

* Break out api specific stuff in datasource to its own file

* Move get projects call to frontend

* Refactor api caching

* Unit test api service

* Fix lint go issue

* Fix typescript strict errors

* Fix test datasource

* Use budget fraction selector instead of budget

* Reset SLO when service is changed

* Handle error in case resource call returned no data

* Show real SLI display name

* Use unsafe prefix on will mount hook

* Store goal in query model since it will be used as soon as graph panel supports adding a threshold

* Add comment to describe why componentWillMount is used

* Interpolate sloid

* Break out SLO aggregation into its own func

* Also test group bys for metricquery test

* Remove not used type fields

* Remove annoying stackdriver prefix from error message

* Default view param to FULL

* Add part about SLO query builder in docs

* Use new images

* Fixes after feedback

* Add one more group by test

* Make stackdriver types internal

* Update docs/sources/features/datasources/stackdriver.md

Co-Authored-By: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>

* Update docs/sources/features/datasources/stackdriver.md

Co-Authored-By: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>

* Update docs/sources/features/datasources/stackdriver.md

Co-Authored-By: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>

* Updates after PR feedback

* add test for when no alias by defined

* fix infinite loop when newVariables feature flag is on

onChange being called in componentDidUpdate produces an
infinite loop when using the new React template variable
implementation.

Also fixes a spelling mistake

* implements feedback for documentation changes

* more doc changes

Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
Co-authored-by: Daniel Lee <dan.limerick@gmail.com>
2020-03-27 12:01:16 +01:00
..
azuremonitor Azure Monitor: Fix app insights source to allow for new __timeFrom and __timeTo (#21879) 2020-03-10 00:55:41 +01:00
cloudwatch Upgrade golangci-lint and fixes some linting errors. (#22909) 2020-03-23 13:37:53 +01:00
elasticsearch pkg/tsdb: Check errors (#19837) 2019-10-22 16:16:53 +02:00
graphite Graphite: Don't issue empty "select metric" queries (#22699) 2020-03-11 09:28:36 +01:00
influxdb pkg/tsdb: Check errors (#19837) 2019-10-22 16:16:53 +02:00
mssql pkg/tsdb: Check errors (#19837) 2019-10-22 16:16:53 +02:00
mysql MySql: Fix password regression in MySQL datasource (#20376) 2019-11-14 12:16:38 +02:00
opentsdb move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
postgres pkg/tsdb: Check errors (#19837) 2019-10-22 16:16:53 +02:00
prometheus Prometheus: Render missing labels in legend formats as an empty string (#22355) 2020-03-18 19:57:11 +01:00
sqleng Postgres/MySQL/MSSQL: Adds support for region annotations (#20752) 2019-12-13 17:25:36 +01:00
stackdriver Stackdriver: Support for SLO queries (#22917) 2020-03-27 12:01:16 +01:00
testdatasource TestData: allow negative values for random_walk parameters (#21627) 2020-01-20 10:50:42 -08:00
fake_test.go follow go idiom and return error as second param 2017-09-21 18:04:16 +02:00
frame_util_test.go Alerting: support alerting on data.Frame (that can be time series) (#22812) 2020-03-18 10:30:07 -04:00
frame_util.go Alerting: support alerting on data.Frame (that can be time series) (#22812) 2020-03-18 10:30:07 -04:00
interval_test.go pkg/tsdb: Check errors (#19837) 2019-10-22 16:16:53 +02:00
interval.go interval: make the FormatDuration function public 2019-02-11 11:25:51 +01:00
models.go Adds signed in user to backend v2 plugins requests (#22584) 2020-03-06 14:37:36 +01: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
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