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
Nirojan Vythilingam
d45b341fc1
Add cloudwatch metrics for managed RabbitMQ service ( #31838 )
...
Co-authored-by: Nirojan Vythilingam <nirojan@users.noreply.github.com>
2021-03-23 08:44:30 +01:00
Tom Daly
55258f2795
32120: Add missing Redshift metrics to CloudWatch data source ( #32121 )
2021-03-22 08:58:16 +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
Erik Sundell
13dd9dff50
CloudWatch: Add support for EC2 IAM role ( #31804 )
...
* add support for iam role auth
* add stubbable func
* fix broken test
* goimports
* pr feedback
2021-03-09 20:50:16 +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
Ilya Stoliar
f5d1fa48ca
CloudWatch: Added AWS Timestream Metrics and Dimensions ( #31624 )
2021-03-03 11:25:45 +02:00
Erik Sundell
580332255d
add new metrics and dimensions ( #31595 )
2021-03-03 10:18:34 +01:00
Ilya Stoliar
ad37077610
CloudWatch: Added AWS Network Firewall metrics and dimensions ( #31498 )
2021-03-02 06:12:59 +01:00
Erik Sundell
055590890c
CloudWatch: Make it possible to specify custom api endpoint ( #31402 )
...
* wip: add endpoint field
* add endpoint to config and make sure it's part of the cache key
* update docs
* improve endpoint paragraph
* Update docs/sources/datasources/cloudwatch.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update public/app/plugins/datasource/cloudwatch/components/ConfigEditor.tsx
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* goimports
* Update docs/sources/datasources/cloudwatch.md
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* update snapshot
* Update docs/sources/datasources/cloudwatch.md
Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com>
2021-02-24 16:05:14 +01:00
Ilya Stoliar
19c12b5451
CloudWatch: Added AWS Ground Station metrics and dimensions ( #31362 )
2021-02-23 20:36:18 +01:00
Rafael de Elvira
c05cf9fdbb
Add new Cloudwatch AWS/DDoSProtection metrics and dimensions ( #31297 )
2021-02-23 13:50:40 +01:00
Rubycut
833446645a
Add eu-south-1 cloudwatch region, closes #31197 ( #31198 )
2021-02-23 10:42:54 +01:00
Erik Sundell
d9d27340b5
prevent field config from being overwritten ( #30437 )
2021-01-20 16:40:37 +01:00
Erik Sundell
64d600f971
Cloudwatch: Move deep link creation to the backend ( #30206 )
...
* get meta data from dataframe meta
* gmdMeta is not used anymore
* wip: move deep link creation to backend
* Refactor backend. Remove not used front end code
* Unit test deep links. Remove not used frontend tests
* remove reference to gmdmeta
* fix goimports error
* fixed after pr feedback
* more changes according to pr feedback
* fix lint issue
* fix bad math expression check and fix bad test
* Decrease nesting
* put link on first data field only
2021-01-13 15:30:09 +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
Arve Knudsen
dd2d206d99
Backend: Remove more globals ( #29644 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-15 19:09:04 +01:00
Benjamin Häringer
2b5a88bf8c
CloudWatch: Add support for AWS DirectConnect ConnectionErrorCount metric ( #29583 )
2020-12-14 10:02:16 +02:00
ying-jeanne
9668c172b3
CloudWatch: namespace in search expression should be quoted if match exact is enabled #29109 ( #29563 )
2020-12-08 12:37:07 +01:00
Ryan McKinley
752d4ed941
Cloudwatch: session cache should use UTC consistently ( #29627 )
2020-12-04 12:44:16 -08:00
Arve Knudsen
9593d57914
Chore: Enable errorlint linter ( #29227 )
...
* Enable errorlint linter
* Handle wrapped errors
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
2020-11-19 14:47:17 +01:00
Karl Atkinson
65ed8a76a6
CloudWatch: added HTTP API Gateway specific metrics and dimensions ( #28780 )
2020-11-17 19:27:20 +01:00
Arve Knudsen
4dd7b7a82d
Chore: Remove unused Go code ( #28852 )
...
* Chore: Remove more unused Go code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-17 11:51:31 +01:00
Tom Daly
18f3969fdb
Add 'EventBusName' dimension to CloudWatch 'AWS/Events' namespace ( #28402 )
2020-11-12 16:48:35 +02:00
Marcus Efraimsson
ded4be0435
CloudWatch: Add support for AWS/ClientVPN metrics and dimensions ( #29055 )
...
Fixes #28778
2020-11-12 15:47:02 +01:00
Ryan McKinley
b91e9faccf
Live: update centrifuge and the ChannelHandler api ( #28843 )
2020-11-05 10:37:04 -08:00
Ryan McKinley
b7a8416e02
Live: improve broadcast semantics and avoid double posting ( #28765 )
2020-11-03 09:11:23 -08:00
Torkel Ödegaard
fa567de9b8
Cloudwatch: Fix issue with field calculation transform not working properly with Cloudwatch data ( #28761 )
...
* Cloudwatch: Fix issue with reducer transform not working properly with Cloudwatch data
* Updated go sdk and updated code
* CloudWatch: Improve test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-03 11:24:26 +01:00
Arve Knudsen
00508295d1
CloudWatch: Improve method name, performance optimization ( #28632 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-29 08:27:24 +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
Krzysztof Warunek
a71eadf379
CloudWatch/Athena - valid metrics and dimensions. ( #28436 )
...
* CloudWatch/Athena - valid metrics and dimensions.
In accordance with https://docs.aws.amazon.com/athena/latest/ug/query-metrics-viewing.html .
* Athena: add ProcessedBytes dimension instead of DataScannedInBytes
2020-10-22 10:04:13 +03:00
Arve Knudsen
af17f9fd9b
CloudWatch: Fix custom metrics ( #28391 )
...
* CloudWatch: Fix querying for custom metrics
Co-authored by Mitch McKenzie <mitch.mckenzie@outlook.com>
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-20 13:33:38 +02:00
Marcus Efraimsson
0e17a15fbd
CloudWatch: Adding support for additional Amazon CloudFront metrics ( #28378 )
...
Follow up to #28069 where some metrics was missed.
Ref #28069
2020-10-19 18:14:27 +02:00
The Rock Guy
c9cc82ea55
CloudWatch: Add EC2CapacityReservations Namespace ( #28309 )
2020-10-16 09:08:50 +02:00
Arve Knudsen
957c88eaca
CloudWatch: Re-implement authentication ( #25548 )
...
* CloudWatch: Revisit authentication
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Simplify auth code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Use ARN
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add Drone configuration
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove unused code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove .drone.yml
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix external ID usage
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Fix issues after merge
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove stale code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove stale code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Use auth type enum
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix test snapshot
* Coordinate frontend and backend option names
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove old comments
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix front-end tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Introduce session cache
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Use constants
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix field alignment
* CloudWatch: Fix log message
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Tidy go.mod
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Handle arn auth type
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Fix role assumption duration
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Inline unnecessary constants
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Use serial comma in UI
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Inline unnecessary constants
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Fail if missing region
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Handle unconfigured region
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Log when using cached session
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Include region in cache key
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add UI warnings for lecagy support
* Do not clear ARN fields whenging change authentication provider
* Graph NG: annotations display (#27972 )
* Annotations support POC
* Fix markers memoization
* dev dashboard update
* Update public/app/plugins/panel/graph3/plugins/AnnotationsPlugin.tsx
* CloudWatch: Remove errors.BadRequest
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Undo unintentional change
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove log line
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix cache key computation
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add region to cache key
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve log messages
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Add documentation
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve tooltip
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve docs
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve docs
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve docs
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve tooltip
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add role assumption provisioning example
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add upgrade notes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve docs
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Apply suggestions from code review
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* backend: use latest sdk (#28147 )
fixes #27713 via https://github.com/grafana/grafana-plugin-sdk-go/pull/227
* Docs: Update Permissions documentation (#28144 )
* removed overview.md
* content updates
* Update datasource_permissions.md
* update content
* content updates
* Update organization_roles.md
* Update docs/sources/enterprise/saml.md
Co-authored-by: Kyle Brandt <kyle@grafana.com>
* Update dashboard_folder_permissions.md
Co-authored-by: Kyle Brandt <kyle@grafana.com>
* area/grafana/toolkit: ci-package needs to use synchronous writes (#28148 )
* ci needs to use synchronous writes or the file ends up with zero length
* <Enterprise Docs> Add instructions to upload license via UI (#28067 )
* Add UI license upload option, reformat Enterprise license activation section
Added the option to upload a license file through the Server Admin UI, and did a little reformatting to make license activation look more like a process.
* Headers not bold, hyphens not asterisks
* Github: run metrics collector workflow every 10min (#28153 )
* GithubActions: Updated cron schedule
* Updated
* Docs: Update explore docs: remove dot at the end of line (#28151 )
HI - Removed Dot(.) at the end of line to make it consistent with other 2 points.
Thanks,
Ashish
* Fix frontend tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix frontend tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Docs: Update upgrade notes
Co-authored-by: Sofia Papagiannaki <sofia@grafana.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
Co-authored-by: Kyle Brandt <kyle@grafana.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
Co-authored-by: Brian Gann <briangann@users.noreply.github.com>
Co-authored-by: Mitch Seaman <mjseaman@users.noreply.github.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: ashishagarwal06 <34888589+ashishagarwal06@users.noreply.github.com>
2020-10-12 17:58:58 +02:00
Darryl
21fc3e702b
Cloudwatch: Adding support for additional Amazon CloudFront. ( #27891 ) ( #28069 )
...
* Cloudwatch: Adding support for additional Amazon CloudFront metrics.
2020-10-07 19:03:05 +02:00
jgulick48
9cd3ab0340
Cloudwatch: Adding support for Amazon ElastiCache Redis metrics. ( #28040 )
...
* Cloudwatch: Adding support for Amazon ElastiCache Redis metrics.
2020-10-06 19:52:02 +02:00
Spencer Taylor
3606e282ba
CloudWatch: Add missing TransitGateway dimension ( #28061 )
...
Adding missing TransitGatewayAttachment dimension to the AWS/TransitGateway namespace.
2020-10-06 19:22:03 +02:00
Arve Knudsen
0a2ef086b3
Chore: Convert CloudWatch metrics to data frames ( #27449 )
...
* CloudWatch: Convert metrics results to data frames
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: kay delaney <kay@grafana.com>
2020-10-06 13:45:58 +02:00
jgulick48
7c2999709c
Cloudwatch: Add support for AWS DirectConnect virtual interface metrics and add missing dimensions ( #28008 )
...
* Cloudwatch: Add support for AWS DirectConnect virtual interface metrics.
* Cloudwatch: Adding dimentions to the AWS/DX namespace for virtual network interface based DirectConnect.
2020-10-05 19:19:40 +03:00
Matheus Alcantara
7d7e727f22
Cloudwatch: Convert go convey tests to standard test library ( #28003 )
...
* Cloudwatch: Convert go convey tests to standard test library
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-02 19:40:15 +02:00
Sofia Papagiannaki
42476811a4
Cloudwatch: Fix loading custom credentials profile ( #27684 )
...
* Store credentials profile in JSON
* Update docs example
* Apply suggestions from code review
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-24 19:21:17 +03:00
Arve Knudsen
a5d9196a53
Chore/fix lint issues ( #27704 )
...
* Chore: Fix linting issues
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-22 16:22:19 +02:00
kay delaney
22d6cfc358
DataSource/CloudWatch: Adds metadata to grouped CW Logs dataframe ( #27454 )
2020-09-09 08:38:53 +01:00
Arve Knudsen
581d2eaaf4
Revert "Convert CloudWatch to use dataframes ( #26702 )" ( #27448 )
...
This reverts commit 7762839853
.
2020-09-08 15:06:58 +02:00
Arve Knudsen
7762839853
Convert CloudWatch to use dataframes ( #26702 )
...
* CloudWatch: Convert metrics queries to return data frames
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-08 13:35:17 +02:00
Szymon Szypulski
a8db544e85
Cloudwatch: Update list of AmazonMQ metrics and dimensions ( #27332 )
...
Update list of AmazonMQ metrics and Dimensions based on the current list
from the official AWS documentation.
Also, change InflightCount to InFlightCount.
2020-09-02 21:32:43 +02:00
Amir Szekely
c5a7afce44
Fix AWS action name ( #27205 )
...
The action name is `tag:GetResources`, not `tags:GetResources`. This creates a confusing error message that can have the user add the wrong permission to the IAM role.
2020-08-26 11:01:50 +02:00