Skip to content

How can I configure a custom CloudWatch alert for my Ec2 instance ?

0

How can I configure a custom CloudWatch alert i.e. (Disk, Memory) for my Ec2 instance (Linux / Windows) without agent installation & any scripts over the system?

2 Answers
1
Accepted Answer

Without an agent/application or scheduled script there is no way for the operating system metrics to be sent to cloudwatch and therefore no way to set an alert.

Most commonly customers install the cloudwatch agent to send OS metrics + custom metrics to cloudwatch. If using an AMI with SSM already installed the agent can be deployed via SSM

AWS
EXPERT

answered 3 years ago

AWS
EXPERT

reviewed 3 years ago

1

To create custom metrics without using CloudWatch Agent, you must use AWS CLI or AWS SDK to create a script to fetch the necessary values.
If the only metrics you want to get are disk and memory, it would be easier to include CloudWatch Agent than to create a script.

EXPERT

answered 3 years ago

AWS
EXPERT

reviewed 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.