View Amazon MSK metrics using CloudWatch
You can monitor metrics for Amazon MSK using the CloudWatch console, the command line, or the CloudWatch API. The following procedures show you how to access metrics using these different methods.
To access metrics using the CloudWatch console
Sign in to the Amazon Web Services Management Console and open the CloudWatch console at
https://console.amazonaws.cn/cloudwatch/
-
In the navigation pane, choose Metrics.
-
Choose the All metrics tab, and then choose Amazon/Kafka.
-
To view topic-level metrics, choose Topic, Broker ID, Cluster Name; for broker-level metrics, choose Broker ID, Cluster Name; and for cluster-level metrics, choose Cluster Name.
-
(Optional) In the graph pane, select a statistic and a time period, and then create a CloudWatch alarm using these settings.
To access metrics using the Amazon CLI
Use the list-metrics and get-metric-statistics commands.
To access metrics using the CloudWatch CLI
Use the mon-list-metrics and mon-get-stats commands.
To access metrics using the CloudWatch API
Use the ListMetrics and GetMetricStatistics operations.