Should ConsumerCount be reported as 0 when there are no consumers connected to the broker?

0

I recently noticed that data points were missing in CloudWatch for the periods of time when broker has no consumers connected. I believe previously (3 - 4 weeks ago) data points were reported for such case as having 0 consumers.

質問済み 1年前247ビュー
1回答
0

The reporting criteria is not specified on Amazon MQ documentation. If there are no consumers subscribed, and if there is no datapoint present - this likely means that the reporting criteria is "Non-zero values".

  • When you say that it was available 3-4 weeks before, can you confirm if the metric is still visible on CloudWatch and that it has 0 as the metric value?
  • If the metric is not available on CloudWatch, it likely means that it has been inactive i.e. no datapoints were published for 14 days (or more) To retrieve datapoints older than 14 days you have to use get-metric-data or get-metric-statistics commands in the AWS CLI.

Using these steps I think you will be able to confirm if 0 is a valid metric value for ConsumerCount. Make sure to use the valid statistic (Sum, Average etc.), which is also not documented currently.

Hope this helps in answering your doubt.

profile pictureAWS
サポートエンジニア
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ