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?

asked a year ago367 views
2 Answers
1

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
Peter_G
answered a year ago
profile pictureAWS
EXPERT
kentrad
reviewed a year 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.

profile picture
EXPERT
answered a year ago
profile pictureAWS
EXPERT
kentrad
reviewed a year 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.

Guidelines for Answering Questions