You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment because the default registry is used this is not possible. For example if you have an application with two Gin servers the second gin-prometheus handler will fail with an error like:
time="2021-03-09T17:43:51Z"level=errormsg="requests_total could not be registered in Prometheus"error="duplicate metrics collector registration attempted"time="2021-03-09T17:43:51Z"level=errormsg="request_duration_seconds could not be registered in Prometheus"error="duplicate metrics collector registration attempted"time="2021-03-09T17:43:51Z"level=errormsg="response_size_bytes could not be registered in Prometheus"error="duplicate metrics collector registration attempted"time="2021-03-09T17:43:51Z"level=errormsg="request_size_bytes could not be registered in Prometheus"error="duplicate metrics collector registration attempted"
Cheers!
The text was updated successfully, but these errors were encountered:
At the moment because the default registry is used this is not possible. For example if you have an application with two Gin servers the second gin-prometheus handler will fail with an error like:
Cheers!
The text was updated successfully, but these errors were encountered: