Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you delete an AWS CloudWatch metric?

I am decommissioning a service in Amazon Web Services DynamoDB. We have various metrics and alarms for our DyDB tables. I am able to delete the alarms using 'aws cloudwatch delete-alarms --alarm-names ...' but I do not see any AWS CLI command to delete metrics.

I know metrics keep data for 2 weeks. Is it possible that the metrics will automatically disappear in 2 weeks when no more data is being stored in it? I see no documentation stating that, unfortunately.

like image 972
MoChaMan Avatar asked Apr 22 '14 20:04

MoChaMan


People also ask

Do CloudWatch metrics get deleted?

CloudWatch does not support metric deletion. Metrics expire based on the retention schedules described above.

How long does AWS CloudWatch keep metric data?

CloudWatch announces the extension of metric retention from 14 days to 15 months, free of charge. CloudWatch has already stored at least 3 months of all existing metrics, which customers can begin using immediately to analyze seasonality, monthly trends and in the future, year-over-year comparisons and forecasts.


1 Answers

You're correct: there is no API to delete AWS Cloudwatch Metrics. Just wait two weeks after your last metric has been pushed. It will disappear automatically.

like image 132
Sébastien Stormacq Avatar answered Sep 28 '22 01:09

Sébastien Stormacq