Collecting data for additional AWS metrics
You can use the AWS API ETL to collect additional metrics for more in-depth analysis of your AWS infrastructure. To collect these metrics, you must perform some additional steps before configuring and running the AWS API ETL.
Collecting CloudWatch custom metrics
You can configure your Amazon EC2 instances to export information related to logs, events, and performance to Amazon CloudWatch as custom metrics. The AWS API ETL can collect these CloudWatch custom metrics. You must add these custom metrics to be collected to the monitoring scripts that Amazon EC2 provides. When you run the scripts, these custom metrics become available for collection by the AWS API ETL.
The AWS API ETL does not support collection of the custom metrics that are provided by the CloudWatch agent.
To collect the custom metrics:
- Log in to your virtual machine on the AWS cloud.
- Run the monitoring scripts.
- (Linux) Download, install, and configure the monitoring script to add the metrics. For more information, see
Enabling metrics on a Linux instances
.
(Windows) Add the custom metrics to a JSON file. For more information, see the following resources:
- To configure the JSON file, see Configure the JSON file for CloudWatch .
- To configure CloudWatch, see the Use EC2Config 4.x to Configure CloudWatch section in the Enabling metrics on Windows instances .
Ensure that the unit of measure for the metric values is not modified. Otherwise, the custom metrics cannot be mapped to the TrueSight Capacity Optimization metrics.
- (Linux) Download, install, and configure the monitoring script to add the metrics. For more information, see
Enabling metrics on a Linux instances
.
- Configure the ETL, run it, and then verify the collection of custom metrics in the Workspace. For more information, see Amazon Web Services - AWS API Extractor.
The following table lists the custom metrics:
TrueSight Capacity Optimization metric | Amazon Web Services metric | Unit of measure | Formula | System |
---|---|---|---|---|
MEM_REAL_UTIL | MemoryUtilization | Percentage | (MemoryUtilization)/100 | Windows / Linux |
MEM_REAL_USED | MemoryUsed | Megabyte | MemoryUsed * 1024 * 1024 | Windows / Linux |
SWAP_SPACE_UTIL | SwapUtilization | Percentage | (SwapUtilization)/100 | Linux |
SWAP_SPACE_USED | SwapUsed | Megabyte | SwapUsed * 1024 * 1024 | Linux |
BYFS_USED_SPACE_PCT | DiskSpaceUtilization | Percentage | (DiskSpaceUtilization)/100 | Linux |
BYFS_USED | DiskSpaceUsed | Gigabyte | DiskSpaceUsed * 1024 * 1024 * 1024 | Linux |
BYFS_FREE | DiskSpaceAvailable | Gigabyte | DiskSpaceAvailable * 1024 * 1024 * 1024 | Linux |
BYFS_SIZE | DiskSpaceUsed, DiskSpaceAvailable | Gigabyte | (DiskSpaceUsed + DiskSpaceAvailable) * 1024 * 1024 * 1024 | Linux |
TOTAL_FS_USED | NA | Sum of all BYFS_USED | Linux | |
TOTAL_FS_FREE | NA | Sum of all BYFS_FREE | Linux | |
TOTAL_FS_SIZE | NA | Sum of all (BYFS_SIZE) | Linux | |
TOTAL_FS_UTIL | NA | (TOTAL_FS_USED/ TOTAL_FS_SIZE) | Linux |
Collecting additional CloudWatch performance metrics
You can also collect additional CloudWatch performance metrics. To collect these metrics, you must add them in a JSON file. When you configure the ETL to use this JSON file and run the ETL, the database is populated with these additional CloudWatch performance metrics.
To collect additional CloudWatch metrics:
- Download the attached JSON file.
Open the JSON file, and add the details of additional CloudWatch metrics. You can use the following JSON code as an example for adding metrics:
Save the file. For example,
aws-metric-perf.json
.- Upload the file to a directory on the ETL engine server.
- In the TrueSight Capacity Optimization console, complete these steps:
- Click Administration > ETL and System Tasks > ETL Tasks.
- On the ETL tasks page, click the AWS API ETL that you want to configure. The ETL details are displayed.
- Click Edit . The ETL configuration settings are displayed.
- Click Advanced > Amazon Web Services Connection.
- In the Additional CloudWatch metrics JSON file path field, specify the path where the JSON file is saved.
The path must include the file name also. For example,/opt/bmc/bco/aws-metric-perf.json
- Click Save.
- Run the ETL or after the next scheduled ETL run, verify that the additional metrics are collected. For information about running the ETL and verifying data collection, see Amazon Web Services - AWS API Extractor.
Collecting additional instance type configuration metrics
You can define additional configuration metrics of an instance that you want to collect in a JSON file. When you configure the ETL to use this JSON file and run it, the database is populated with these additional configuration metrics.
To collect additional configuration metrics:
- Download the attached file.
- Open the file, and complete these steps:
Add the details of additional configuration metrics.
The following JSON file code shows some sample configuration metrics.Update the
version
parameter to add the current date in theyyyymmdd
format.Info
The ETL uses this parameter to verify that the file is the most recent.
Save the file on your computer. For example,
aws-metric-conf.json
.
- Upload the file to a directory on the ETL Engine Server.
- In the TrueSight Capacity Optimization console, complete these steps:
- Click Administration > ETL and System Tasks > ETL Tasks.
- On the ETL tasks page, click the AWS API ETL that you want to configure. The ETL details are displayed.
- Click Edit . The ETL configuration settings are displayed.
- Click Advanced > Amazon Web Services Connection.
- In the Instance type definition JSON file path field, type the path where the JSON file is saved.
- Click Save.
- Run the ETL or after the next scheduled ETL run, verify that the additional metrics are collected. For information about running the ETL and verifying data collection, see Amazon Web Services - AWS API Extractor.
Comments
Log in or register to comment.