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.

gefragt vor einem Jahr248 Aufrufe
1 Antwort
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
SUPPORT-TECHNIKER
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen