antonbabenko / terraform-cost-estimation

Anonymized, secure, and free Terraform cost estimation based on Terraform plan (0.12+) or Terraform state (any version)
https://terraform-cost-estimation.com/
Apache License 2.0
690 stars 64 forks source link

Pricing for Cloudwatch metrics #15

Open gurre opened 4 years ago

gurre commented 4 years ago

Cloudwatch enhanced monitoring for EC2 may also cost a considerable amount per month, the bool key is available in aws_launch_configuration.*.enable_monitoring and aws_instance.*.monitoring.

This is quite tricky to calculate because each instance type has different metrics (e.g. nitro, burstable, ebs), the price is then based on how many are submitted every 1m or 5m depending if enhanced monitoring is enabled.

From the Cloudwatch Pricing page on 2020-06-25:

If your application runs on 10 Amazon EC2 instances 24x7 for a 30-day month, and you enable EC2 Detailed Monitoring on all instances, your charges would be as follows:

Total number of metrics = 7 metrics per instance * 10 instances = 70 metrics

Monthly CloudWatch Metrics Charges @$0.30 per custom metric = 70 * $0.30 = $21

https://aws.amazon.com/cloudwatch/pricing/
antonbabenko commented 4 years ago

Thanks for this feature request!

Some of the things we all can imagine are very tricky to implement and they are not implemented in this free service (at least yet).

Maybe, in the future, this project will be extended with such tricky features and become a part of a product like env0 where cost management is already in the core. I don't know about this yet.