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.

질문됨 일 년 전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
지원 엔지니어
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠