HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

aws cloudwatch — Monitor AWS resources to gain system-wide visibility into resource utilization, application performa

Submitted by: @import:tldr-pages··
0
Viewed 0 times
resourcescommandmonitoraws cloudwatchcligainawssystem

Problem

How to use the aws cloudwatch command: Monitor AWS resources to gain system-wide visibility into resource utilization, application performance, and operational health. More information: <https://docs.aws.amazon.com/cli/latest/reference/cloudwatch/>.

Solution

aws cloudwatch — Monitor AWS resources to gain system-wide visibility into resource utilization, application performance, and operational health. More information: <https://docs.aws.amazon.com/cli/latest/reference/cloudwatch/>.

List dashboards for your account:
aws cloudwatch list-dashboards


Display details for the specified dashboard:
aws cloudwatch get-dashboard --dashboard-name {{dashboard_name}}


List metrics:
aws cloudwatch list-metrics


List alarms:
aws cloudwatch describe-alarms


Create or update an alarm and associate it with a metric:
aws cloudwatch put-metric-alarm --alarm-name {{alarm_name}} --evaluation-periods {{evaluation_periods}} --comparison-operator {{comparison_operator}}


Delete the specified alarms:
aws cloudwatch delete-alarms --alarm-names {{alarm_names}}


Delete the specified dashboards:
aws cloudwatch delete-dashboards --dashboard-names {{dashboard_names}}

Code Snippets

List dashboards for your account

aws cloudwatch list-dashboards

Display details for the specified dashboard

aws cloudwatch get-dashboard --dashboard-name {{dashboard_name}}

List metrics

aws cloudwatch list-metrics

List alarms

aws cloudwatch describe-alarms

Create or update an alarm and associate it with a metric

aws cloudwatch put-metric-alarm --alarm-name {{alarm_name}} --evaluation-periods {{evaluation_periods}} --comparison-operator {{comparison_operator}}

Context

tldr-pages: common/aws cloudwatch

Revisions (0)

No revisions yet.