{"action":"closed","issue":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-management-agent/issues/58","repository_url":"https://api.github.com/repos/rabbitmq/rabbitmq-management-agent","labels_url":"https://api.github.com/repos/rabbitmq/rabbitmq-management-agent/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-management-agent/issues/58/comments","events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-management-agent/issues/58/events","html_url":"https://github.com/rabbitmq/rabbitmq-management-agent/issues/58","id":325785632,"number":58,"title":"Queue metrics might not be reported on node restart and plugin enablement ","user":{"login":"dcorbacho","id":646577,"avatar_url":"https://avatars0.githubusercontent.com/u/646577?v=4","gravatar_id":"","url":"https://api.github.com/users/dcorbacho","html_url":"https://github.com/dcorbacho","followers_url":"https://api.github.com/users/dcorbacho/followers","following_url":"https://api.github.com/users/dcorbacho/following{/other_user}","gists_url":"https://api.github.com/users/dcorbacho/gists{/gist_id}","starred_url":"https://api.github.com/users/dcorbacho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcorbacho/subscriptions","organizations_url":"https://api.github.com/users/dcorbacho/orgs","repos_url":"https://api.github.com/users/dcorbacho/repos","events_url":"https://api.github.com/users/dcorbacho/events{/privacy}","received_events_url":"https://api.github.com/users/dcorbacho/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"dcorbacho","id":646577,"avatar_url":"https://avatars0.githubusercontent.com/u/646577?v=4","gravatar_id":"","url":"https://api.github.com/users/dcorbacho","html_url":"https://github.com/dcorbacho","followers_url":"https://api.github.com/users/dcorbacho/followers","following_url":"https://api.github.com/users/dcorbacho/following{/other_user}","gists_url":"https://api.github.com/users/dcorbacho/gists{/gist_id}","starred_url":"https://api.github.com/users/dcorbacho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcorbacho/subscriptions","organizations_url":"https://api.github.com/users/dcorbacho/orgs","repos_url":"https://api.github.com/users/dcorbacho/repos","events_url":"https://api.github.com/users/dcorbacho/events{/privacy}","received_events_url":"https://api.github.com/users/dcorbacho/received_events","type":"User","site_admin":false},"assignees":[{"login":"dcorbacho","id":646577,"avatar_url":"https://avatars0.githubusercontent.com/u/646577?v=4","gravatar_id":"","url":"https://api.github.com/users/dcorbacho","html_url":"https://github.com/dcorbacho","followers_url":"https://api.github.com/users/dcorbacho/followers","following_url":"https://api.github.com/users/dcorbacho/following{/other_user}","gists_url":"https://api.github.com/users/dcorbacho/gists{/gist_id}","starred_url":"https://api.github.com/users/dcorbacho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcorbacho/subscriptions","organizations_url":"https://api.github.com/users/dcorbacho/orgs","repos_url":"https://api.github.com/users/dcorbacho/repos","events_url":"https://api.github.com/users/dcorbacho/events{/privacy}","received_events_url":"https://api.github.com/users/dcorbacho/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-05-23T16:35:27Z","updated_at":"2018-05-24T09:56:17Z","closed_at":"2018-05-24T09:56:17Z","author_association":"CONTRIBUTOR","body":"See https://github.com/deadtrickster/prometheus_rabbitmq_exporter/issues/45\r\n\r\nSometimes on node restart the queue message stats (ready, unack...) are reported as NaN in the UI, and do not recover over time. This is a race condition on the boot step introduced by the agent to force stats collection when `collect_statistics` is set to `none` in `rabbit`.\r\n\r\nIn this case, the enablement of `rabbitmq_management_agent` plugin [sets the parameter to `fine`](https://github.com/rabbitmq/rabbitmq-management-agent/blob/master/src/rabbit_mgmt_db_handler.erl#L75). However, it seems that this can sometimes happen after queues are recovered, and then they never emit stats.\r\n\r\nForcing an event refresh will solve this race condition on node restart, and the lack of stats when the plugin is enabled with `collect_statistics` as `none` forcing the collection to start immediately."}}
{"actor":{"display_login":"michaelklishin"}}