Monitor MSK Serverless clusters - Amazon Managed Streaming for Apache Kafka
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Monitor MSK Serverless clusters

Amazon MSK integrates with Amazon CloudWatch so that you can collect, view, and analyze metrics for your MSK Serverless cluster. The metrics shown in the following table are available for all serverless clusters. As these metrics are published as individual data points for each partition in the topic, we recommend viewing them as a 'SUM' statistic to get the topic-level view.

Amazon MSK publishes PerSec metrics to CloudWatch at a frequency of once per minute. This means that the 'SUM' statistic for a one-minute period accurately represents per-second data for PerSec metrics. To collect per-second data for a period of longer than one minute, use the following CloudWatch math expression: m1 * 60/PERIOD(m1).

Metrics available at the DEFAULT monitoring level
Name When visible Dimensions Description
BytesInPerSec After a producer writes to a topic Cluster Name, Topic

The number of bytes per second received from clients. This metric is available for each topic.

BytesOutPerSec After a consumer group consumes from a topic Cluster Name, Topic

The number of bytes per second sent to clients. This metric is available for each topic.

FetchMessageConversionsPerSec After a consumer group consumes from a topic Cluster Name, Topic

The number of fetch message conversions per second for the topic.

EstimatedMaxTimeLag After a consumer group consumes from a topic Cluster Name, Consumer Group, Topic A time estimate of the MaxOffsetLag metric.
MaxOffsetLag After a consumer group consumes from a topic Cluster Name, Consumer Group, Topic The maximum offset lag across all partitions in a topic.
MessagesInPerSec After a producer writes to a topic Cluster Name, Topic The number of incoming messages per second for the topic.
ProduceMessageConversionsPerSec After a producer writes to a topic Cluster Name, Topic The number of produce message conversions per second for the topic.
SumOffsetLag After a consumer group consumes from a topic Cluster Name, Consumer Group, Topic The aggregated offset lag for all the partitions in a topic.
To view MSK Serverless metrics
  1. Sign in to the Amazon Web Services Management Console and open the CloudWatch console at https://console.amazonaws.cn/cloudwatch/.

  2. In the navigation pane, under Metrics, choose All metrics.

  3. In the metrics search for the term kafka.

  4. Choose AWS/Kafka / Cluster Name, Topic or AWS/Kafka / Cluster Name, Consumer Group, Topic to see different metrics.