Skip to content

Instantly share code, notes, and snippets.

@yoshiakisudo
Last active July 14, 2016 09:13
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoshiakisudo/1990754579f42e7afcd83f68dda86e2e to your computer and use it in GitHub Desktop.
Save yoshiakisudo/1990754579f42e7afcd83f68dda86e2e to your computer and use it in GitHub Desktop.
#
# AWS TOTAL Billing information
#
<source>
type cloudwatch
tag cloudwatch-billing.amount
cw_endpoint monitoring.us-east-1.amazonaws.com
namespace AWS/Billing
metric_name EstimatedCharges
dimensions_name Currency
dimensions_value USD
statistics Average
interval 7200
period 21600
delayed_start true
</source>
#
# AWS cloudfront Service Billing information
#
<source>
type cloudwatch
tag cloudwatch-billing-service.cloudfront
cw_endpoint monitoring.us-east-1.amazonaws.com
namespace AWS/Billing
metric_name EstimatedCharges
dimensions_name Currency,ServiceName
dimensions_value USD,AmazonCloudFront
statistics Average
interval 7200
period 21600
delayed_start true
</source>
#
# AWS EC2 Service Billing information
#
<source>
type cloudwatch
tag cloudwatch-billing-service.ec2
cw_endpoint monitoring.us-east-1.amazonaws.com
namespace AWS/Billing
metric_name EstimatedCharges
dimensions_name Currency,ServiceName
dimensions_value USD,AmazonEC2
statistics Average
interval 7200
period 21600
delayed_start true
</source>
#
# AWS RDS Service Billing information
#
<source>
type cloudwatch
tag cloudwatch-billing-service.rds
cw_endpoint monitoring.us-east-1.amazonaws.com
namespace AWS/Billing
metric_name EstimatedCharges
dimensions_name Currency,ServiceName
dimensions_value USD,AmazonRDS
statistics Average
interval 7200
period 21600
delayed_start true
</source>
#
# AWS Route53 Service Billing information
#
<source>
type cloudwatch
tag cloudwatch-billing-service.route53
cw_endpoint monitoring.us-east-1.amazonaws.com
namespace AWS/Billing
metric_name EstimatedCharges
dimensions_name Currency,ServiceName
dimensions_value USD,AmazonRoute53
statistics Average
interval 7200
period 21600
delayed_start true
</source>
#
# AWS ElastiCache Service Billing information
#
<source>
type cloudwatch
tag cloudwatch-billing-service.ElastiCache
cw_endpoint monitoring.us-east-1.amazonaws.com
namespace AWS/Billing
metric_name EstimatedCharges
dimensions_name Currency,ServiceName
dimensions_value USD,AmazonElastiCache
statistics Average
interval 7200
period 21600
delayed_start true
</source>
#
# AWS DynamoDB Service Billing information
#
<source>
type cloudwatch
tag cloudwatch-billing-service.DynamoDB
cw_endpoint monitoring.us-east-1.amazonaws.com
namespace AWS/Billing
metric_name EstimatedCharges
dimensions_name Currency,ServiceName
dimensions_value USD,AmazonDynamoDB
statistics Average
interval 7200
period 21600
delayed_start true
</source>
#
# Total Billing metrics post to mackerel
#
<match cloudwatch-billing.*>
type mackerel
api_key <YOUR API KEY>
service AWS-Billing
metrics_name ${[1]}-billing-total.${out_key}
out_keys EstimatedCharges
</match>
#
# Service Billing metrics post to mackerel
#
<match cloudwatch-billing-service.cloudfront>
type mackerel
api_key <YOUR API KEY>
service AWS-Billing
metrics_name billing-service.CloudFront
out_keys EstimatedCharges
</match>
<match cloudwatch-billing-service.ec2>
type mackerel
api_key <YOUR API KEY>
service AWS-Billing
metrics_name billing-service.EC2
out_keys EstimatedCharges
</match>
<match cloudwatch-billing-service.rds>
type mackerel
api_key <YOUR API KEY>
service AWS-Billing
metrics_name billing-service.RDS
out_keys EstimatedCharges
</match>
<match cloudwatch-billing-service.route53>
type mackerel
api_key <YOUR API KEY>
service AWS-Billing
metrics_name billing-service.route53
out_keys EstimatedCharges
</match>
<match cloudwatch-billing-service.ElastiCache>
type mackerel
api_key <YOUR API KEY>
service AWS-Billing
metrics_name billing-service.ElastiCache
out_keys EstimatedCharges
</match>
<match cloudwatch-billing-service.DynamoDB>
type mackerel
api_key <YOUR API KEY>
service AWS-Billing
metrics_name billing-service.DynamoDB
out_keys EstimatedCharges
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment