Skip to main content

AWS Billing

Prerequisites​

Centreon Plugin​

Install this plugin on each needed poller:

yum install centreon-plugin-Cloud-Aws-Billing-Api

To use it, you can either install 'awscli' (AWS Command Line Interface) or 'paws' (Perl AWS SDK).

Install awscli​

On CentOS, install with following commands:

yum install awscli

Centreon Configuration​

Create a host using the appropriate template​

Go to Configuration > Hosts and click Add. Then, fill the form as shown by the following table:

FieldValue
NameName of the host
AliasDescription
IP Address / DNSCan be localhost
Monitored fromPoller used to monitor
TemplatesCloud-Aws-Billing-custom

The following host macros should be set as shown:

MacroValue
AWSACCESSKEYAWS access key
AWSSECRETKEYAWS secret key
AWSREGIONAWS region
AWSCUSTOMMODEPlugin custom mode: awscli or paws

Check the Create Services linked to the Template too box and click on the Save button.

The following service will be created:

  • Billing-Estimated-Charges

The following service macros should be set as shown:

MacroValue
SERVICEName of the AWS service

Add as many services as needed or use the autodiscovery rule :

  • Cloud-Aws-Billing-Api-Estimated-Charges

This rule will add a service named Billing-$servicename$ per AWS service.