Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Only one TYPE line may exist for the same metric name #19

Closed
dnABic opened this issue Feb 27, 2017 · 6 comments
Closed

Bug: Only one TYPE line may exist for the same metric name #19

dnABic opened this issue Feb 27, 2017 · 6 comments

Comments

@dnABic
Copy link

dnABic commented Feb 27, 2017

Hi,

I have a cluster of 3 rabbitmq instances. When using prometheus_rabbitmq_exporter version v3.6.5.8 I get the following error on prometheus server side:

text format parsing error in line 147: second TYPE line for metric name "rabbitmq_nodes_up", or TYPE reported after samples

The problem seems to be this:

# TYPE rabbitmq_nodes_up untyped
# HELP rabbitmq_nodes_up Node runnning status
rabbitmq_nodes_up{name="[email protected]",type="disc"} 1
# TYPE rabbitmq_nodes_up untyped
# HELP rabbitmq_nodes_up Node runnning status
rabbitmq_nodes_up{name="[email protected]",type="disc"} 1
# TYPE rabbitmq_nodes_up untyped
# HELP rabbitmq_nodes_up Node runnning status
rabbitmq_nodes_up{name="[email protected]",type="disc"} 1

while there are 3 TYPE lines for the same metric name, which is in this case rabbitmq_nodes_up.

Similar problem described here:

https://groups.google.com/forum/#!topic/prometheus-developers/ZVb2NjjUJ5A

Anyways, it seems that it should be printed only once:

# TYPE rabbitmq_nodes_up untyped
# HELP rabbitmq_nodes_up Node runnning status

instead of 3 times.

Thanks and Greets!

@deadtrickster
Copy link
Owner

Hi, thanks for the report. Do you need other cluster-related metrics?

@dnABic
Copy link
Author

dnABic commented Mar 2, 2017

Sorry for late reply. I was mostly interested to know how many nodes are in the cluster. But data rates per cluster node would be also very useful. I don't know if it would be possible to detect if there is network partition.

@deadtrickster
Copy link
Owner

What is "data rates"? there are metrics for IO (in bytes) for entire VM.,. or you mean something else?

Re:partitions. I can find a way to transform rabbitmqctl cluster_status. However I thought that rabbitmq_node_up is enough.

@dnABic
Copy link
Author

dnABic commented Mar 2, 2017

I misunderstood data rates. It is actually data volume sent from one cluster node to other cluster nodes in XB/s. I don't find it useful (for me) right now.

I suppose rabbitmq_node_up is enough. I will test it in the next days.

@deadtrickster
Copy link
Owner

please try rabbitmq_node_up and let me know if that works for you.

Re: data rates. I'm now very confused :-) What you misunderstood and found not useful? Thanks!

@dnABic
Copy link
Author

dnABic commented Mar 2, 2017

RabbitMQ management plugin provides information about data transfer between cluster nodes. On management plugin web interface, this data transfer is called "data rates".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants