snippetbashTip
aws cloudwatch — Monitor AWS resources to gain system-wide visibility into resource utilization, application performa
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-dashboardsDisplay details for the specified dashboard:
aws cloudwatch get-dashboard --dashboard-name {{dashboard_name}}List metrics:
aws cloudwatch list-metricsList alarms:
aws cloudwatch describe-alarmsCreate 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-dashboardsDisplay details for the specified dashboard
aws cloudwatch get-dashboard --dashboard-name {{dashboard_name}}List metrics
aws cloudwatch list-metricsList alarms
aws cloudwatch describe-alarmsCreate 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.