Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloudwatch: add support for Metric Math #1077

Closed
rix0rrr opened this issue Nov 5, 2018 · 4 comments
Closed

cloudwatch: add support for Metric Math #1077

rix0rrr opened this issue Nov 5, 2018 · 4 comments
Assignees
Labels
@aws-cdk/aws-cloudwatch Related to Amazon CloudWatch feature-request A feature should be added or improved.

Comments

@rix0rrr
Copy link
Contributor

rix0rrr commented Nov 5, 2018

See here:

https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html

@rix0rrr rix0rrr added the feature-request A feature should be added or improved. label Nov 6, 2018
@debora-ito debora-ito added the @aws-cdk/aws-cloudwatch Related to Amazon CloudWatch label Nov 7, 2018
@eladb
Copy link
Contributor

eladb commented Feb 5, 2019

WIP: #1396

@eladb eladb self-assigned this Aug 12, 2019
@ninahaack
Copy link

Hi, do you have any idea when this feature will be released?

@eladb eladb assigned rix0rrr and unassigned eladb Sep 3, 2019
@Sm1tShah
Copy link

Sm1tShah commented Sep 9, 2019

If you happen to be someone who wants to use metric math but don't want to wait for it to release, I was able to use escape hatches to make an Alarm in CDK and get the metric math working.

Comments on my approach are also welcome

  1. I created a Metric object (you'll have to set a namespace and metricName but that can be deleted later
  2. I created an Alarm object (set metric to above metric, and evaluationPeriod and threshold are legitimate fields we'll fill out and use)
  3. Used addPropertyDeletionOverride on above Alarm object to delete MetricName, Dimensions, Period, Namespace, Statistic, and ExtendedStatistic fields
  4. Added a Metrics field on Alarm Object using addPropertyOverride. Use CloudFormation documentation to fill out the data in Metrics field as you would in a CFN template

@igilham
Copy link
Contributor

igilham commented Dec 11, 2019

Note that there are no escape hatches for Dashboards and Widgets so there appears to be no way to use Metric Math with CloudWatch Dashboards at this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-cloudwatch Related to Amazon CloudWatch feature-request A feature should be added or improved.
Projects
None yet
6 participants