2025-03-14 21:59:59 -06:00
|
|
|
# aws cloudwatch
|
|
|
|
|
|
|
|
|
|
> Monitor AWS resources to gain system-wide visibility into resource utilization, application performance, and operational health.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://docs.aws.amazon.com/cli/latest/reference/cloudwatch/>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`aws cloudwatch delete-alarms --alarm-names {{alarm_names}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Delete the specified dashboards:
|
|
|
|
|
|
|
|
|
|
`aws cloudwatch delete-dashboards --dashboard-names {{dashboard_names}}`
|