January 2019
Intermediate to advanced
490 pages
15h 37m
English
Using the following code, we will first create a metric without specifying dimensions and then we will post data with dimensions. We can combine both Step 1 and Step 2 for real-world use cases:
aws cloudwatch put-metric-data \ --namespace 'ServerlessProgrammingCookbook' \ --metric-name 'FailedLogins' \ --value 1 \ --region us-east-1 \ --profile admin
We can verify our metric from AWS Management Console as follows:
Read now
Unlock full access