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.
CloudWatch does not support metric deletion. Metrics expire based on the retention schedules described above.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With