Shirley
da035e823f
CloudWatch: Pass feature toggles to backend ( #48547 )
2022-04-29 17:47:46 +02:00
Shirley
438512c7ef
CloudWatch: Add tests to query input region in executeLogAlertQuery ( #46212 )
2022-03-04 11:15:36 +01:00
Shirley
1255f8a76a
Unexport mocks, use aws-sdk-go helpers, rename test utilities file ( #46107 )
2022-03-03 09:42:51 +01:00
Shirley
a68a570e92
CloudWatch: Add test to executeStartQuery ( #45888 )
...
* CloudWatch: Add test to executeStartQuery
* Add test for absence of limit
* Restrict assertions to limit in some tests
2022-02-25 13:14:59 +00:00
Isabella Siu
2c3bed1f4b
CloudWatch: remove unused "live" log code ( #44185 )
2022-01-20 08:58:39 -05:00
Andrej Ocenas
e237ff20a9
CloudWatch Logs: Add retry strategy for hitting max concurrent queries ( #39290 )
...
* Add error passing and retry strategy
* Change generic error to specific one
* Make the error more generic
* Refactor retry strategy
* Add retry that handles multiple queries
* Rollback some backend changes
* Remove simple retry strategy
* Add comments
* Add tests
* Small test fixes
* Add log timeout config
* Fix tests
* Fix tests
* Add validation
* Remove commented code and add comment
* Fix snapshots
* Remove unnecessary cast
2021-11-17 21:46:13 +01:00
Andrej Ocenas
91a67ab0fb
CloudWatch/Logs: Don't group dataframes for non time series queries for non live path ( #38915 )
...
* Use the same grouping function in legacy code
* Add error propagation
* Fix tests
* Fix tests
2021-09-08 16:30:55 +02:00
Will Browne
d7862c50b8
Plugins: Migrate CloudWatch to backend plugin SDK ( #31149 )
...
* first pass
* add instance manager
* fix tests
* remove dead code
* unexport fields
* cleanup
* remove ds instance from executor
* cleanup
* inline im
* remove old func
* get error working
* unexport field
* let fe do its magic
* fix channel name
* revert some tsdb changes
* fix annotations
* cleanup
2021-03-23 16:32:12 +01:00
Ryan McKinley
9dd1d5f553
Cloudwatch: use shared library for aws auth ( #29550 )
...
* use sdk for handling auth
* fix broken test
* lint fixes
Co-authored-by: Erik Sundell <erik.sundell87@gmail.com>
2021-03-12 14:30:21 +01:00
Erik Sundell
d512c5a1b4
Cloudwatch: ListMetrics API page limit ( #31788 )
...
* add list metrics api page limit
* Update docs/sources/datasources/cloudwatch.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-03-10 07:41:22 +01:00
Erik Sundell
2d660ee502
CloudWatch: Restrict auth provider and assume role usage according to Grafana configuration ( #31805 )
...
* restrict usage of providers and assume role according to grafana config
* update docs
* Update docs/sources/datasources/cloudwatch.md
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update pkg/tsdb/cloudwatch/cloudwatch.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update pkg/tsdb/cloudwatch/session_test.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* pr feedback
* fix failing test
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-03-09 21:20:59 +01:00
Arve Knudsen
b79e61656a
Introduce TSDB service ( #31520 )
...
* Introduce TSDB service
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Erik Sundell <erik.sundell87@gmail.com>
Co-authored-by: Will Browne <will.browne@grafana.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2021-03-08 07:02:49 +01:00
Arve Knudsen
25048ebdf8
Chore: Add CloudWatch HTTP API tests ( #29691 )
...
* CloudWatch: Add HTTP API tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-01-07 11:36:13 +01:00
kay delaney
c4c5b2dc61
CloudWatch Logs queue and websocket support ( #28176 )
...
CloudWatch Logs queue and websocket support
2020-10-28 08:36:57 +00:00
kay delaney
a1f90521a0
CloudWatch Logs: Move query response stats to appropriate FrameMeta property ( #26732 )
...
* CloudWatch Logs: Move query response stats to appropriate FrameMeta property
2020-08-19 15:18:04 +01:00
Patrik Karlström
43ef052d57
cloudwatch: Consolidate client logic ( #25555 )
...
* cloudwatch: Consolidate client logic
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-07-23 18:52:22 +02:00
Arve Knudsen
c863fd3da9
CloudWatch: Clean up code ( #26259 )
...
* CloudWatch: Clean up code
2020-07-14 08:23:23 +02:00
Arve Knudsen
41d432b5ae
Chore: Enable whitespace linter ( #25903 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-07-06 20:17:28 +02:00
Kyle Brandt
17d3bb4287
backend: use latest Go sdk ( #25304 )
...
* uses plugin-sdk-go v0.66.0, which adds adds the ExecutedQueryString property to FrameMeta and changes s/Title/DisplayName in FieldConfig
* go mod tidy
2020-06-03 04:03:37 -04:00
Arve Knudsen
cc6df0ac6b
CloudWatch: Clean up code ( #24666 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-05-18 12:25:58 +02:00
kay delaney
f48ba11d4c
Datasource/Cloudwatch: Adds support for Cloudwatch Logs ( #23566 )
...
* Datasource/Cloudwatch: Adds support for Cloudwatch Logs
* Fix rebase leftover
* Use jsurl for AWS url serialization
* WIP: Temporary workaround for CLIQ metrics
* Only allow up to 20 log groups to be selected
* WIP additional changes
* More changes based on feedback
* More changes based on PR feedback
* Fix strict null errors
2020-04-25 22:48:20 +02:00