Skip to content

Add support to region Metric from CloudWatch Dashboard #5449

@gc23

Description

@gc23

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
}

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-cloudwatchRelated to Amazon CloudWatchfeature-requestA feature should be added or improved.in-progressThis issue is being actively worked on.needs-triageThis issue or PR still needs to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions