[rabbitmq-discuss] RabbitMQ 3.1.0 HTTP API rates are always zero

Darrell Burgan dburgan at peopleanswers.com
Mon Jun 3 15:54:52 BST 2013

Hi Simon, well I'm certain I'm hitting the same server. What version of RabbitMQ are you using that is generating the correct results? I'm using 3.1.0.

As to user permissions, the user I am logged in as doing the API is same as the one I am looking at the RabbitMQ management console with. The user has administrator rights and full access to the default vhost /, which is the only vhost we have.

One other thing I didn't mention is that we have two RabbitMQ instances on two different machines clustered together. Does this have any bearing on statistics? Note I get the same incorrect results on both servers.

Is there some configuration item I might have missed? Here are the configuration files:




		{mnesia, [{dump_log_write_threshold, 100}]},
		{rabbit, [
			{cluster_nodes, ['rabbit at xxx, 'rabbit at yyy]},
			{tcp_listeners, [5672]}


	RABBITMQ_NODENAME=rabbit at xxx

I did install the latest erlang from the RHEL EPEL repositories. I then installed RabbitMQ by downloading the RPM directly from rabbitmq.com and installing.

The "rabbitmqctl environment" command gives this:

	 {cluster_nodes,[rabbit at xxx,rabbit at yyy]},
	 {error_logger,{file,"/var/log/rabbitmq/rabbit at xxx.log"}},
	 {plugins_expand_dir,"/u01/rabbitmq/mnesia/rabbit at xxx-plugins-expand"},
	 {sasl_error_logger,{file,"/var/log/rabbitmq/rabbit at xxx-sasl.log"}},

And "rabbitmqctl status" gives this:

	Status of node rabbit at xxx ...
	     [{rabbitmq_management,"RabbitMQ Management Console","3.1.0"},
	      {rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.1.0"},
	      {mochiweb,"MochiMedia Web Server","1.4.1"},
	      {crypto,"CRYPTO version 2","2.0.4"},
	      {rabbitmq_management_agent,"RabbitMQ Management Agent","3.1.0"},
	      {os_mon,"CPO  CXC 138 46","2.2.7"},
	      {xmerl,"XML parser","1.2.10"},
	      {inets,"INETS  CXC 138 49","5.7.1"},
	      {mnesia,"MNESIA  CXC 138 12","4.5"},
	      {amqp_client,"RabbitMQ AMQP Client","3.1.0"},
	      {sasl,"SASL  CXC 138 11","2.1.10"},
	      {stdlib,"ERTS  CXC 138 10","1.17.5"},
	      {kernel,"ERTS  CXC 138 10","2.14.5"}]},
	     "Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:30] [kernel-poll:true]\n"},

I'm kind of at a loss. Is there a rabbitmqctl command I can run that returns the rate statistics (I didn't see it in rabbitmqctl report) ... ?


-----Original Message-----
From: Simon MacMullen [mailto:simon at rabbitmq.com] 
Sent: Monday, June 03, 2013 5:25 AM
To: Discussions about RabbitMQ
Cc: Darrell Burgan
Subject: Re: [rabbitmq-discuss] RabbitMQ 3.1.0 HTTP API rates are always zero

Hmm, not sure I can say much more than "works for me".

The numbers that are shown in the web UI are taken from the request http://xxx:15672/api/overview (albeit without the ?columns= parameter); there is only one source for these numbers.

One thing you might want to check is if you are using a different user for web UI vs nagios. Users that do not have the "administrator" or "monitoring" tags will only see message rates for vhosts they have access to - could you be seeing that?

Another possibility (and I know this might sound patronising, but we all make mistakes) - are you talking to the same server in each case?

Cheers, Simon

More information about the rabbitmq-discuss mailing list