From the course: AWS for DevOps: Monitoring, Metrics, and Logging

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Use the AWS CLI for metrics

Use the AWS CLI for metrics - Amazon Web Services (AWS) Tutorial

From the course: AWS for DevOps: Monitoring, Metrics, and Logging

Start my 1-month free trial

Use the AWS CLI for metrics

- [Instructor] Here we are in the AWS CLI Command Reference for Cloudwatch. So we're now going to use the CLI to examine Cloudwatch metrics. When you're working with Cloudwatch, I recommend that you review the documentation for whichever tool you're using whether it's CLI or whether, as we will in subsequent movies CSDK. So you can see here that we have a list of available commands and the first thing we're going to do is just list the metrics. So if we click on the list metrics, we'll get an example and what we're going to do here is we're going to list the metrics available for a specific service so S3 and EC2. Just so we can kind of tie this together with what we saw on the console and again you'll remember we enabled advanced metrics for our EC2 Instance so we'll see something other than defaults. And this will be returned in text so you can see the example here in JSON output. We're going to go ahead and jump over to script file just 'cause I've written out these commands, 'cause…

Contents