From f5b9515643e0535c6d9e30f3d1410ed5d0ea0615 Mon Sep 17 00:00:00 2001 From: Ilya Stoliar <52413756+ilyastoli@users.noreply.github.com> Date: Wed, 3 Nov 2021 09:41:36 +0200 Subject: [PATCH] CloudWatch: Add AWS Transfer metrics and dimension (#41168) What this PR does / why we need it: Adding AWS Transfer metics according to: https://docs.aws.amazon.com/transfer/latest/userguide/monitoring.html#metrics Which issue(s) this PR fixes: No issue Special notes for your reviewer: Based on AWS documentation only, I didn't tried to monitor AWS Transfer myself --- pkg/tsdb/cloudwatch/metric_find_query.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/tsdb/cloudwatch/metric_find_query.go b/pkg/tsdb/cloudwatch/metric_find_query.go index e55edab62ee..b5096a49eb5 100644 --- a/pkg/tsdb/cloudwatch/metric_find_query.go +++ b/pkg/tsdb/cloudwatch/metric_find_query.go @@ -135,6 +135,7 @@ var metricsMap = map[string][]string{ "AWS/Timestream": {"SuccessfulRequestLatency", "SystemErrors", "UserErrors", "DataScannedBytes"}, "AWS/ThingsGraph": {"EventStoreQueueSize", "FlowExecutionTime", "FlowExecutionsFailed", "FlowExecutionsStarted", "FlowExecutionsSucceeded", "FlowStepExecutionTime", "FlowStepExecutionsFailed", "FlowStepExecutionsStarted", "FlowStepExecutionsSucceeded"}, "AWS/TransitGateway": {"BytesIn", "BytesOut", "PacketDropCountBlackhole", "PacketDropCountNoRoute", "PacketsIn", "PacketsOut"}, + "AWS/Transfer": {"BytesIn", "BytesOut", "FilesIn", "FilesOut"}, "AWS/Translate": {"CharacterCount", "ResponseTime", "ServerErrorCount", "SuccessfulRequestCount", "ThrottledCount", "UserErrorCount"}, "AWS/TrustedAdvisor": {"GreenChecks", "RedChecks", "RedResources", "ServiceLimitUsage", "YellowChecks", "YellowResources"}, "AWS/Usage": {"CallCount", "ResourceCount"}, @@ -242,6 +243,7 @@ var dimensionsMap = map[string][]string{ "AWS/Timestream": {"Operation", "DatabaseName", "TableName"}, "AWS/ThingsGraph": {"FlowTemplateId", "StepName", "SystemTemplateId"}, "AWS/TransitGateway": {"TransitGateway", "TransitGatewayAttachment"}, + "AWS/Transfer": {"ServerId"}, "AWS/Translate": {"LanguagePair", "Operation"}, "AWS/TrustedAdvisor": {}, "AWS/Usage": {"Class", "Resource", "Service", "Type"},