How to monitor Kafka (MSK) maintenance status?

0

We're taking metrics from Kafka as described in official guide

And we setup some alerts - for example, we have KafkaOfflinePartitions, KafkaUnderReplicatedPartitions and performance degradation

But during maintenance window AWS starts to update Kafka servers one-by-one. This triggers alerts described above

Is it possible to get status of maintenance window with some metrics, so I'll be able to mute this alerts during maintenance? Or what is best practice to deal with such situations

2 回答
1

You can see the status of your cluster in two ways:

  • Go to the AWS Management Console and check cluster status.
  • Use the "describe-cluster-v2" command or the "DescribeClusterV2" operation to describe the cluster.

If your cluster's status shows "MAINTENANCE", it means that AWS is currently doing regular maintenance work on the cluster.

For a full list and explanation of all the possible cluster status values, you can check the documentation at the following link: https://docs.aws.amazon.com/msk/latest/developerguide/msk-cluster-states.html

AWS
Harita
已回答 24 天前
profile pictureAWS
专家
iBehr
已审核 23 天前
1

Hello,

You may also monitor the ActiveControllerCount Cloudwatch metrics in MSK and it is observed at stats:avg

Ideally value for the ActiveControllerCount should be 1/count of brokers

For EG: Having 3 brokers in MSK ActiveControllerCount should be 1/3= 0.33

Thank you.

AWS
支持工程师
已回答 24 天前
profile pictureAWS
专家
iBehr
已审核 23 天前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则