Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upFeature Request: Allow registering multiple times (with flag) #2981
Comments
This comment has been minimized.
This comment has been minimized.
|
This is a feature request for the Java client, you should file it there. This behaviour is intended though, as it is a mistake to register multiple collectors with the same name. |
brian-brazil
closed this
Jul 24, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 23, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
DrewDennison commentedJul 24, 2017
Hello,
I'm using Prometheus with Scala and the Play Framework 2.5. Play will hot-reload every time there is a code change which means
.register()is called multiple times. This causes errors saying there is already a collector with that name registered. I would like to disable the exception at registration if there is something with the same name. Perhaps it could print a warning?