-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
@aws-cdk/aws-cloudwatchRelated to Amazon CloudWatchRelated to Amazon CloudWatchfeature-requestA feature should be added or improved.A feature should be added or improved.in-progressThis issue is being actively worked on.This issue is being actively worked on.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.
Description
The metric class is missing the region parameter. This is required for metrics around lambda@edge which are deployed in different locations.
The following is an example of the graph widget produced by the AWS console.
{
"view": "timeSeries",
"region": "eu-west-1",
"stacked": false,
"metrics": [
[ "AWS/Lambda", "Invocations", "FunctionName", "us-east-1.FunctionName", "Resource", "us-east-1.FunctionName:1", { "yAxis": "left", "period": 300, "stat": "Sum" } ],
[ "...", { "yAxis": "left", "period": 300, "stat": "Sum", "region": "eu-west-2" } ],
[ "...", { "yAxis": "left", "period": 300, "stat": "Sum", "region": "eu-central-1" } ]
],
"period": 300
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-cloudwatchRelated to Amazon CloudWatchRelated to Amazon CloudWatchfeature-requestA feature should be added or improved.A feature should be added or improved.in-progressThis issue is being actively worked on.This issue is being actively worked on.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.