Skip to content

Mackerel-Plugin: AWSのBillingメトリクスを投稿するプラグインを作った

License

Notifications You must be signed in to change notification settings

yhidetoshi/mackerel-plugin-awsbilling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status MIT License

mackerel-plugin-awsbilling

AWS billing custom metrics plugin for mackerel.io agent

Install

mkr plugin install mackerel-plugin-awsbilling

Synopsis

mackerel-plugin-awsbilling -region=us-east-1 -access-key-id=<id> -secret-access-key=<key>

AWS IAM Policy

the credential provided manually or fetched automatically by IAM Role should have the policy that includes an action, 'cloudwatch:GetMetricStatistics'

Example of mackerel-agent.conf

[plugin.metrics.awsbilling]
command = '/path/to/mackerel-plugin-awsbilling -region=us-east-1'