AWS offers many services in the cloud, bringing simplicity and flexibility in the implementation of hosted infrastructures, but knowing and tracking your budget is complex and difficult to predict.
This difficulty is mainly due to the billing method. The invoice depends on a large number of parameters and in particular on the dynamic scalability of the architecture, which is able to grow automatically as demands increase.
ServiceNav allows real-time monitoring of your costs
Thanks to ServiceNav monitoring, it is possible to be alerted at the earliest possible moment when your anticipated budget is exceeded.
Configuring Amazon Web Services
To monitor AWS costs from ServiceNav, you need to add billing information in CloudWatch :
- Open the Billing and Cost Management console at https://console.aws.amazon.com/billing/.
- In the navigation panel, choose Billing Preferences.
- Choose Receive Billing Alerts.
- Choose Save preferences.
Once this option is activated, billing data will be available in CloudWatch within 15 minutes.
To monitor AWS billing in ServiceNav, simply add a check based on the service template AWS-Paas-Cloudwatch to existing hosts
In the availability and checks tab,complete as follows:
Region You can override the account configuration at host level if you have multiple checks.
Metric name : the name of the metric is available in Cloudwatch, (see the text highlighted in green in the next image).
Dimensions Indicate the name of the dimension (in red below) and the value of the dimension (in blue below) according to the format Name=Dimension_name,Value=Dimension_value
Namespace Enter the character string "AWS/Billing".
To find the name of the metric, the name of the dimension and the value of the dimension to fill in, go to the metric tab of CloudWatch, then Billing > by service. Select the metric to retrieve and go to the Source tab.
A page like this one will show you the necessary information:
Here the namespace is circled in black, the name of the metric is circled in green, the name of the dimension is in red and the value of the dimension is in blue.