How do you delete an AWS CloudWatch metric?

MoChaMan picture MoChaMan · Apr 22, 2014 · Viewed 32.5k times · Source

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.

Answer

Sébastien Stormacq picture Sébastien Stormacq · Apr 24, 2014

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.