Set Metrics Based Alarms Using the AWS Management Console

If you want to set alarms and alerts for your machine, using Protegrity appliances, you can send logs and metrics to the AWS Console. The AWS Management Console enables you to set alerts and configure SNS events as per your requirements.

You can create alerts based on the following metrics:

  • Memory Use Percent
  • Disk I/O
  • Network
  • Disk Used Percent
  • CPU Idle
  • Swap Memory Use Percent

Prerequisite

Ensure that the CloudWatch integration is enabled.

For more information about enabling the CloudWatch integration, refer to Enabling AWS CloudWatch Integration.

Creating an SNS Event

The following steps explain how to create an SNS event for an email-based notification.

To create an SNS event:

  1. Login to the Amazon Management Console.

  2. To create an SNS event, navigate to Services > Application Integration > Simple Notification Services > Topics.

  3. Select Create topic.

    The following screen appears.

  4. Enter the required Details.

  5. Click Create topic.

    The following screen appears.

    AWS SNS ARN

    Ensure that you remember the Amazon Resource Name (ARN) associated to your topic.

    For more information about the ARN, refer to the following link.

    https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html

    The topic is created.

  6. From the left pane, click Subscriptions.

  7. Click Create subscription.

  8. Enter the Topic ARN of the topic created in the above step.

  9. From the Protocol field, select Email.

  10. In the Endpoint, enter the required email address where you want to receive the alerts.

    AWS Subscription

  11. Enter the optional details.

  12. Click Create subscription.

    An SNS event is created and a confirmation email is sent to the subscribed email address.

  13. To confirm the email subscription, click the Confirm Subscription link from the email received on the registered email address.

Creating Alarms

The following steps explain the procedure to set an alarm for CPU usage.

To create an alarm:

  1. Login to the Amazon Management Console.

  2. To create an alarm, navigate to Services > Management & Governance > CloudWatch.

  3. From the left pane, select Alarms > In alarm.

  4. Select Create alarm.

  5. Click Select metric.

    The Select metric window appears.

  6. From the Custom Namespaces, select CWAgent.

  7. Select cpu, host.

  8. Select the required metric and click Select metric.

  9. Configure the required metrics.

    SNS Metric

  10. Configure the required conditions.

    SNS Condition

  11. Click Next.

    The Notification screen appears.

  12. Select the alarm state.

  13. From Select SNS topic, choose Select an existing SNS topic.

  14. Enter the required email type in Send a notification to… dialog box.

  15. Select Next.

  16. Enter the Name and Description.

  17. Select Next.

  18. Preview the configuration details and click Create alarm.

    An alarm is created.

Last modified January 30, 2025