Yuriy Tseretyan
3a5ddbfbdf
use logger context in cloudwatch ( #57842 )
2022-11-02 10:14:02 -04:00
Lion Ralfs
1f7c84f125
CloudWatch: Fix all-log-groups
endpoint when called without logGroupNamePrefix ( #57483 )
2022-11-01 08:50:04 +01:00
Shirley
c2e9e797b3
CloudWatch: fix non-deterministic test ( #57831 )
2022-10-28 10:05:55 -04:00
Shirley
96beb3a3f1
Cloudwatch: refactor parsing metric data queries ( #57624 )
2022-10-27 14:10:49 +02:00
Erik Sundell
94aa090fb0
Cloudwatch: Refactor namespaces resource request ( #57590 )
...
* add route tests
* remove not used method
* pr feedback
* change variable name
2022-10-26 15:54:23 +02:00
Shirley
76a3a1eda7
CloudWatch: migrate tests to metrics data query request parsing level, add tests ( #57431 )
2022-10-25 15:53:54 +02:00
Erik Sundell
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
Erik Sundell
4c654ddb76
Cloudwatch: Refactor metrics resource request ( #57424 )
...
* refactor metrics request
* Update pkg/tsdb/cloudwatch/routes/dimension_keys_test.go
Co-authored-by: Shirley <4163034+fridgepoet@users.noreply.github.com>
* return metric struct value intead of pointer
* make it possible to test hard coded metrics service
* test all paths in route
* fix broken test
* fix one more broken test
* add integration test
Co-authored-by: Shirley <4163034+fridgepoet@users.noreply.github.com>
2022-10-25 14:00:54 +02:00
Erik Sundell
8adbacb18e
Cloudwatch: Refactor datasource instance factory method ( #57452 )
...
* wip
* fix broken test
2022-10-25 09:52:12 +02:00
Erik Sundell
017da781cf
Cloudwatch: Refactor dimension values resource request ( #57346 )
...
* refactor dimension values backend
* fix test file name
2022-10-24 15:04:25 +02:00
Shirley
9ebed91eed
CloudWatch: Refactor to extract DataQuery grouping by region out of request parsing ( #57392 )
...
* CloudWatch: Extract request parsing grouping by region from ParseQueries
* Rename ParseQueries to ParseMetricDataQueries
2022-10-24 14:57:32 +02:00
Erik Sundell
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
Shirley
cadc6088db
CloudWatch: move QueryData input parsing types to separate package ( #57165 )
...
* CloudWatch: move parse request types separate package
* Move metric query constants, unexport metricDataQuery json decoding type
* Unexport isSearchExpression
2022-10-20 11:21:13 +02:00
Shirley
65939ce5b1
CloudWatch: Move logger to its own package and minor refactoring ( #57107 )
...
* Move log to its own package
* Rename test-data to testdata
* Change alias to string type
* Remove parseQueries from a method of cloudWatchExecutor
2022-10-18 04:21:18 -04:00
Erik Sundell
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
Jan Garaj
b1b4110ab1
CloudWatch: Add missing AWS/Prometheus metrics ( #54990 )
2022-09-22 22:25:33 -04:00
Jan Garaj
e5619c0fe6
CloudWatch: update AWS/States metrics ( #55427 )
2022-09-22 12:00:07 +02:00
Erik Sundell
5eeba155f7
Cloudwatch: Refactor - move describe all log groups to call resource handler ( #55582 )
...
* refactor backend
* move describe log groups to api file
* fix lint issue
2022-09-22 10:32:05 +02:00
Erik Sundell
28ebdf1641
move describe log groups to resource api ( #55485 )
2022-09-21 10:55:54 +02:00
Isabella Siu
4f2b66ac1d
CloudWatch: Log group variable should get all log groups ( #54062 )
2022-08-23 11:43:30 -04:00
Jan Garaj
6ca7009b6c
CloudWatch: Add missing AWS/Lambda metrics ( #53866 )
...
Missing metrics/dimensions for AWS/Lambda. Removed Alias dimension - it isn't mentioned by doc and I don't see that dimension in my CloudWatch. Doc: https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics.html
2022-08-18 09:18:40 -04:00
Jan Garaj
fdaf6b5e8d
CloudWatch: Add missing AWS/ApiGateway metrics ( #53839 )
...
Missing metrics/dimensions for WebSocket API. Doc: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-logging.html
2022-08-18 09:52:14 +02:00
Jan Garaj
83f8da2e02
Update of AWS/Events ( #53831 )
...
Added missing metrics: Events, IngestionToInvocationStartLatency. Doc: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-monitoring.html
2022-08-18 08:48:01 +02:00
Isabella Siu
f39f9eb053
Cloudwatch: update redis metrics ( #53618 )
2022-08-15 09:09:27 -04:00
Jo
062d255124
Handle ioutil deprecations ( #53526 )
...
* replace ioutil.ReadFile -> os.ReadFile
* replace ioutil.ReadAll -> io.ReadAll
* replace ioutil.TempFile -> os.CreateTemp
* replace ioutil.NopCloser -> io.NopCloser
* replace ioutil.WriteFile -> os.WriteFile
* replace ioutil.TempDir -> os.MkdirTemp
* replace ioutil.Discard -> io.Discard
2022-08-10 15:37:51 +02:00
Isabella Siu
52b57fdb1c
CloudWatch: add CloudWatchSynthetics namespace ( #52956 )
2022-08-01 10:19:02 -04:00
Isabella Siu
542b4f2431
CloudWatch: returnData should default to true ( #52759 )
2022-07-27 08:45:59 -04:00
Shirley
7f73f65bcd
CloudWatch: Refactor tests to assert struct instead of marshalled json ( #52024 )
...
* CloudWatch: Refactor tests to assert struct instead of marshalled json
* apply linter suggestion
* Move false next to average
2022-07-25 05:48:09 -04:00
Isabella Siu
146c90d59e
CloudWatch: fix log explorer context ( #52118 )
2022-07-19 13:59:30 -04:00
Adam Simpson
05cdef5004
CloudWatch: Remove simplejson in favor of 'encoding/json' ( #51062 )
2022-07-08 19:39:53 +00:00
Kat Yang
31630edf0c
Chore: Remove Wrapf ( #50128 )
...
* Chore: Remove Wrapf
* Remove all Wrapf refs
* Remove last Wrapf ref
* Fix lint errors
* Remove Wrap and Wrapf definitions
* Remove unnecessary colon
2022-06-06 22:30:31 +02:00
Kat Yang
3c3039f5b3
Chore: Remove Wrap ( #50048 )
...
* Chore: Remove Wrap and Wrapf
* Fix: Add error check
2022-06-03 09:24:24 +02:00
Piotr Jamróz
9e5292d32d
CloudWatch: Remove duplicated metrics ( #49400 )
2022-05-23 14:52:12 +02:00
k-yone
34d77fd584
CloudWatch: Add missing metrics for AWS App Runner ( #49048 )
2022-05-23 13:38:52 +02:00
Aton-Kish
2ba1a75d50
CloudWatch: Added missing AWS/AppRunner metrics ( #49174 )
2022-05-23 13:14:16 +02:00
Erik Sundell
aac5c9fd22
Cloudwatch: Pass label in deep link ( #49160 )
...
* pass label in deep iink
* add unit test
* pr feedback
2022-05-23 07:23:38 +02:00
Shirley
ef9e08ffcf
CloudWatch: Change aggregateResponse to return slice instead of map ( #48805 )
...
* Rename tests
* Change test names
* Change metrics from map to slice
* Add test for one output, multiple MetricDataResults
* Rename test input file
* Use map instead of iterating over the response metrics
* Rename variable
* move partial data set to query row response
* remove not used label field
* remove incorrect placeholder
Co-authored-by: Erik Sundell <erik.sundell87@gmail.com>
2022-05-18 09:16:38 +02:00
qs_pang
78287618ab
Fix CloudWatch: Add missing ELB metrics #48756 ( #48985 )
...
* Fix CloudWatch: Add missing ELB metrics #48756
* run go fmt
2022-05-17 14:58:34 -04:00
Erik Sundell
3106af9eec
Cloudwatch: Set time zone offset in GMD request ( #48772 )
...
* set timezone offset in case feature is enabled
* add unit tests
* add unit tests
* remove unused import
2022-05-16 12:15:54 +02:00
Shirley
5c2dee19d5
CloudWatch: Refactor tests, remove unused parameters ( #48815 )
2022-05-08 09:27:03 +02:00
Szymon Szypulski
b6c5f29373
Cloudwatch: Add support for new AWS/RDS EBS* metrics ( #48798 )
...
Add support for the missing AWS/RDS metrics, EBSIOBalance% and
EBSByteBalance%. Change is based on the official AWS blog post[1]. Those
metrics work on for Nitro instances.
1. https://aws.amazon.com/blogs/compute/improving-application-performance-and-reducing-costs-with-amazon-ebs-optimized-instance-burst-capability/
2022-05-06 10:38:15 +02:00
Shirley
b35ca8c08d
CloudWatch: Pass label in GetMetricData API request when dynamic label feature toggle is enabled ( #48574 )
2022-05-05 13:59:23 +02:00
Shirley
27821e0bc1
CloudWatch: Migrate alias to dynamic labels ( #48555 )
2022-05-03 13:41:51 +01:00
Andreas Christou
7f4b1b767e
Add new DynamoDB metrics & dimensions ( #48551 )
2022-05-03 13:32:09 +01:00
Shirley
da035e823f
CloudWatch: Pass feature toggles to backend ( #48547 )
2022-04-29 17:47:46 +02:00
Erik Sundell
f58a2d879e
Cloudwatch: Use new annotation API ( #48102 )
...
* use new annotation api
* fix bad merge
2022-04-27 12:41:48 +02:00
Shirley
79d328fcbc
CloudWatch: Add tests for data frame naming in formatAlias ( #47899 )
2022-04-21 15:11:23 +02:00
Shirley
4b889eb336
Change to pointer receiver in mock call ( #47575 )
2022-04-12 16:22:28 +02:00
Jamie DeMichele
614fd04653
CloudWatch: Added missing MemoryDB Namespace metrics ( #47290 )
...
CloudWatch: Added missing MemoryDB metrics
2022-04-11 16:35:50 -04:00
Gabriel Santos
b5bacce819
CloudWatch: Handle new error codes for MetricInsights ( #47033 )
...
* CloudWatch: Handle new error codes for MetricInsights
* Changes/test to support case where only the first GetMetricDataOutput returns errors and refactoring
* Fix Potential file inclusion via variable
* Fix gosec 304 by assigning a new variable
* fix goimports issue
2022-04-04 15:44:19 +02:00