286b9e08e9
Plugins: Bump Plugin SDK version and address instance management breaking changes ( #68900 )
...
* bump sdk and propagate ctx
* fix tests
2023-05-24 10:19:34 +02:00
ae23ef5b41
CloudWatch: Refactor around handleGetRegions ( #65713 )
...
* Create minimal EC2 interface
* convert regions variable to a function returning a copy
* Add test for multiple calls to regions to check regionsCache
* Add returns to handler after error
* Refactor handleGetRegions
2023-04-11 19:55:57 +02:00
c43e1a721f
CloudWatch: fix custom namespace for listing dimension keys, refactor to non-pointer types, add test assertions, rename packages ( #59106 )
...
Co-authored-by: Erik Sundell <erik.sundell87@gmail.com>
2022-11-22 15:59:11 +01:00
5daa87d7a1
Cloudwatch: Remove unused code ( #57593 )
...
* remove not used code and refactor check health
* fix broken test
* remove not used variable
2022-10-25 15:03:51 +02:00
8adbacb18e
Cloudwatch: Refactor datasource instance factory method ( #57452 )
...
* wip
* fix broken test
2022-10-25 09:52:12 +02:00
b0c2ca6c1b
Cloudwatch: Refactor dimension keys resource request ( #57148 )
...
* use new layered architecture in get dimension keys request
* go lint fixes
* pr feedback
* more pr feedback
* remove not used code
* refactor route middleware
* change signature
* add integration tests for the dimension keys route
* use request suffix instead of query
* use typed args also in frontend
* remove unused import
* harmonize naming
* fix merge conflict
2022-10-20 12:53:28 +02:00
36734f3cef
CloudWatch: Move hard coded metrics, namespaces and dimensions to its own package ( #57089 )
...
* move hard coded metrics to its own package
* remove comment
2022-10-18 09:23:47 +02:00
da035e823f
CloudWatch: Pass feature toggles to backend ( #48547 )
2022-04-29 17:47:46 +02:00
4b889eb336
Change to pointer receiver in mock call ( #47575 )
2022-04-12 16:22:28 +02:00
438512c7ef
CloudWatch: Add tests to query input region in executeLogAlertQuery ( #46212 )
2022-03-04 11:15:36 +01:00
1255f8a76a
Unexport mocks, use aws-sdk-go helpers, rename test utilities file ( #46107 )
2022-03-03 09:42:51 +01:00
50a53ef58b
CloudWatch: replace metricFindQueries with CallResourceHandler ( #41571 )
2022-02-16 14:28:26 -05:00
89a0c0fc37
Cloudwatch: Remove unused parameters ( #45237 )
...
* Remove unused parameters
* Remove unused context
* Make plugin context first parameter
2022-02-10 17:15:11 +01:00
2c3bed1f4b
CloudWatch: remove unused "live" log code ( #44185 )
2022-01-20 08:58:39 -05:00
eb40723bcb
Cloudwatch: Enable dimension filtering when loading dimension values ( #41566 )
...
* fix dimension filter
* refactor tests
* add comments
* fix typo
2021-11-11 16:48:35 +01:00
bc21adf712
CloudWatch: Allow use of missing AWS namespaces using custom metrics ( #30961 )
...
* add tests
* CloudWatch: Allow use of missing AWS namespaces using custom metrics
* CloudWatch: Allow use of missing AWS namespaces using custom metrics
2021-05-17 07:32:32 +02:00
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
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
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
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
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
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
c4c5b2dc61
CloudWatch Logs queue and websocket support ( #28176 )
...
CloudWatch Logs queue and websocket support
2020-10-28 08:36:57 +00:00
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
b972963934
Cloudwatch: Add af-south-1 region ( #26513 )
...
* Adds af-south-1 region to cloudwatch datasource
* Fix test
Co-authored-by: Sofia Papagiannaki <papagian@gmail.com>
2020-07-23 14:02:25 +03:00
c863fd3da9
CloudWatch: Clean up code ( #26259 )
...
* CloudWatch: Clean up code
2020-07-14 08:23:23 +02:00
41d432b5ae
Chore: Enable whitespace linter ( #25903 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-07-06 20:17:28 +02:00
cc6df0ac6b
CloudWatch: Clean up code ( #24666 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-05-18 12:25:58 +02:00
404bf2e0dd
CloudWatch: Add ap-east-1 to hard-coded region lists ( #19523 )
...
* CloudWatch: Add ap-east-1 to hard-coded region lists (#17448 )
* CloudWatch: Fix handleGetRegion tests
2019-10-01 14:23:43 +02:00
3f136e0da9
tech: replace bmizerany/assert with stretchr/testify ( #16625 )
...
bmizerany is old and unsupported. so we are replacing it
with stretchr which is an drop in replacement and something
we want to use more in Grafana.
2019-04-17 10:25:58 +02:00
28aafcd789
cloudwatch: Add tests for resource_arn template query
2019-02-05 18:37:05 +01:00
220c4f4ab4
add test
2018-10-26 03:13:02 +09:00
5d95601720
Merge variable declaration with assignment (gosimple)
...
This fixes:
pkg/cmd/grafana-cli/commands/upgrade_all_command.go:56:3: should merge variable declaration with assignment on next line (S1021)
pkg/login/ldap.go:406:4: should merge variable declaration with assignment on next line (S1021)
pkg/services/sqlstore/migrator/dialect.go:87:2: should merge variable declaration with assignment on next line (S1021)
pkg/services/sqlstore/migrator/dialect.go:165:2: should merge variable declaration with assignment on next line (S1021)
pkg/tsdb/cloudwatch/metric_find_query_test.go:185:2: should merge variable declaration with assignment on next line (S1021)
2018-04-16 21:04:57 +02:00
43e6ea95e0
Cloudwatch: add support for multi instances ( #10570 )
...
* cloudwatch: fix ebs_volume_ids by create a client-session before call ec2:DescribeInstances.
* cloudwatch: add support for multi instanceIds on call ebs_volume_ids.
2018-01-24 15:41:42 +01:00
52e1c4113b
fix cloudwatch ec2_instance_attribute ( #9718 )
...
* fix cloudwatch ec2_instance_attribute
* add test
* minor fix
2017-11-13 13:07:46 +01:00
fe9fca381c
move cloudwatch crendential related code
2017-09-29 13:45:11 +09:00
fa074249e4
fix test
2017-09-29 13:44:01 +09:00
f590db1b78
move test code
2017-09-29 13:44:01 +09:00