298 Amazon EMR Management Guide CloudWatch Events and Metrics To access metrics

298 amazon emr management guide cloudwatch events and

This preview shows page 304 - 307 out of 395 pages.

298
Image of page 304
Amazon EMR Management Guide CloudWatch Events and Metrics To access metrics from the CloudWatch CLI Call mon-get-stats . For more information, see the Amazon CloudWatch User Guide . To access metrics from the CloudWatch API Call GetMetricStatistics . For more information, see Amazon CloudWatch API Reference . Setting Alarms on Metrics Amazon EMR pushes metrics to CloudWatch, which means you can use CloudWatch to set alarms on your Amazon EMR metrics. You can, for example, configure an alarm in CloudWatch to send you an email any time the HDFS utilization rises above 80%. The following topics give you a high-level overview of how to set alarms using CloudWatch. For detailed instructions, see Create or Edit a CloudWatch Alarm in the Amazon CloudWatch User Guide . Set alarms using the CloudWatch console 1. Open the CloudWatch console at . 2. Choose Create Alarm . This launches the Create Alarm Wizard . 299
Image of page 305
Amazon EMR Management Guide CloudWatch Events and Metrics 3. Choose EMR Metrics and scroll through the Amazon EMR metrics to locate the metric you want to place an alarm on. An easy way to display just the Amazon EMR metrics in this dialog box is to search on the cluster identifier of your cluster. Select the metric to create an alarm on and choose Next . 4. Fill in the Name , Description , Threshold , and Time values for the metric. 5. If you want CloudWatch to send you an email when the alarm state is reached, in the Whenever this alarm: field, choose State is ALARM . For Send notification to: , select an existing SNS topic. If you choose Create topic , you can set the name and email addresses for a new email subscription list. This list is saved and appears in the field for future alarms. Note If you use Create topic to create a new Amazon SNS topic, the email addresses must be verified before they receive notifications. Emails are only sent when the alarm enters an alarm state. If this alarm state change happens before the email addresses are verified, they do not receive a notification. 6. At this point, the Define Alarm screen gives you a chance to review the alarm that you’re about to create. Choose Create Alarm . Note For more information about how to set alarms using the CloudWatch console, see Create an Alarm that Sends Email in the Amazon CloudWatch User Guide . To set an alarm using the CloudWatch API Call mon-put-metric-alarm . For more information, see Amazon CloudWatch User Guide . To set an alarm using the CloudWatch API Call PutMetricAlarm . For more information, see Amazon CloudWatch API Reference Metrics Reported by Amazon EMR in CloudWatch The following tables list the metrics that Amazon EMR reports in the console and pushes to CloudWatch. Amazon EMR Metrics Amazon EMR sends data for several metrics to CloudWatch. All Amazon EMR clusters automatically send metrics in five-minute intervals. Metrics are archived for two weeks; after that period, the data is discarded.
Image of page 306
Image of page 307

You've reached the end of your free preview.

Want to read all 395 pages?

  • Spring '12
  • LauraParker
  • Amazon Web Services, Amazon Elastic Compute Cloud

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes