Files
tldr/pages.zh/common/aws-cloudwatch.md

32 lines
930 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# AWS CloudWatch
> 监控AWS资源以获得系统范围内的资源利用率、应用程序性能和操作健康状况的可见性。
> 更多信息:<https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudwatch/index.html>。
- 列出您账户的仪表板:
`aws cloudwatch list-dashboards`
- 显示指定仪表板的详细信息:
`aws cloudwatch get-dashboard --dashboard-name {{dashboard_name}}`
- 列出指标:
`aws cloudwatch list-metrics`
- 列出警报:
`aws cloudwatch describe-alarms`
- 创建或更新警报并将其与指标关联:
`aws cloudwatch put-metric-alarm --alarm-name {{alarm_name}} --evaluation-periods {{evaluation_periods}} --comparison-operator {{comparison_operator}}`
- 删除指定的警报:
`aws cloudwatch delete-alarms --alarm_names {{alarm_names}}`
- 删除指定的仪表板:
`aws cloudwatch delete-dashboards --dashboard-names {{dashboard_names}}`