API shows different status than management UI for queue state #9021
-
Describe the bugHi, Please advise. "head_message_timestamp": null, Reproduction steps
Expected behaviorqueue state should be idle Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Management UI uses exactly the same HTTP API. There is no "special internal API" it relies on. Querying the API likely results in queue processes performing some activity (this is possible even though stats samples are collected periodically). Or it's a timing issue between the requests. If you plan on using the queue state metric for consumer activity monitoring, don't. It is not meant When it does matter is when the metric reports that the queue is failing. All other states are not particularly interesting. Use numerical consumer metrics with a reasonable threshold. Since the metrics
|
Beta Was this translation helpful? Give feedback.
-
Thanks much! |
Beta Was this translation helpful? Give feedback.
Management UI uses exactly the same HTTP API. There is no "special internal API" it relies on.
Querying the API likely results in queue processes performing some activity (this is possible even though stats samples are collected periodically). Or it's a timing issue between the requests.
If you plan on using the queue state metric for consumer activity monitoring, don't. It is not meant
to be used that way and simply indicates queue leader replica's Erlang process activity, which is
not necessarily related to application activity.
When it does matter is when the metric reports that the queue is failing. All other states are not particularly interesting. Use numerical consumer metrics with…