How to push Custom metrics from Infoworks Instance to AWS Cloud Watch

How to push Custom metrics from Infoworks Instance to AWS Cloud Watch

Problem Description:

Infoworks services are being shut down automatically due to insufficient disk space, you would like to be alerted via cloudwatch on the available disk space or other OS metrics from the AWS EC2 instance that hosts Infoworks.

Solution:

We can create a custom script and use AWS CLI to push the custom metrics to CloudWatch and the setup alerting based on metric value.

Step 1:

SSH into the EC2 instance where Infoworks platform is hosted. Ensure you have AWS CLI installed and the CLI profile has enough permissions to push metrics to cloudwatch.

Step 2:

Create a script called metrics.sh with below content,

Copy

Step 3:

Make the script executable.

Copy

Step 4:

Push your metric to Cloudwatch every 1 min using crontab.

Open Crontab

Copy

Paste below content to push metric to cloudwatch every 1 min

Copy

Step 5 :

Open Cloudwatch from AWS console and navigate to 'Custom' metrics and filter by instance ID to view Disk_Usage Metric.

Applicable Infoworks Versions:

All

VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches