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

duplicate metrics with same name and label values #62

Closed
salapat11 opened this issue Sep 27, 2018 · 2 comments
Closed

duplicate metrics with same name and label values #62

salapat11 opened this issue Sep 27, 2018 · 2 comments

Comments

@salapat11
Copy link

MQ version: 9.0.0.3
mq-golang: Dev branch
Go: go1.11 linux/amd64

Using the mq-golang and mq-metric-samples/mq-prometheus libraries for collecting metrics. Compile and install worked fine and the exporter started with no issues. However, errors happen as below when calling the metrics endpoint -

An error has occurred during metrics collection:

5 error(s) occurred:

collected metric ibmmq_qmgr_interval_mqput_mqput1_total label:<name:"qmgr" value:"xxxxx" > gauge:<value:xxx > was collected before with the same name and label values
collected metric ibmmq_object_mqget_count label:<name:"object" value:"xxxx" > label:<name:"qmgr" value:"xxx" > gauge:<value:xx > was collected before with the same name and label values

@ibmmqmet ibmmqmet mentioned this issue Oct 23, 2018
4 tasks
@ibmmqmet
Copy link
Collaborator

I think this should be fixed with the latest push in #63. Looks like newer Prometheus versions were flagging an error that older versions accepted blindly.

@salapat11
Copy link
Author

Thanks for the fix. Will merge the code

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

No branches or pull requests

2 participants