Rabbitmq plugin not working

The rabbitmq plugin is not working.

This is the error log in the telegraf.log file

 Error in input [inputs.rabbitmq]: Errors encountered: Get 127.0.0.1:5672/api/queues: unsupported protocol scheme

This is the telegraf configuration,

 [[inputs.rabbitmq]]
url = "127.0.0.1:5672"

The rabbitmq server is up and running. What is the reason behind this problem ?

1 Like

This input uses the management plugin, once enabled this API is usually on port 15672.

1 Like

I have enabled that plugin now,
So, we have to give the 15672 port in Telegraf.conf?

[[inputs.rabbitmq]]
 url = "127.0.0.1:15672"

???

1 Like

@daniel If that is the case, still I am not getting anything.

here is the full error now,

2017-05-01T20:30:10Z E! ERROR in input [inputs.rabbitmq]: Errors encountered: [Get127.0.0.1:15672/api/queues: unsupported protocol scheme ""], [Get 127.0.0.1:15672/api/overview: unsupported protocol scheme ""], 
[Get 127.0.0.1:15672/api/nodes: unsupported protocol scheme ""]
1 Like

I do a get response by this,

curl -u guest:guest 'http://localhost:15672/api/queues/'

A very large json, which I cannot post here

1 Like

@Luv Try url = http://localhost:15672 You need the http in there.

2 Likes

Oh yeah & Oh no !!

I see, it was written url. Works perfectly now !!

2 Likes