In my app I have multiple sockets (one to the browser, one to an internal service and so on). This is a problem when using this client as prom-client gives the error: Error: A metric with the name socket_io_connected has already been registered.. That seems fair enough since I'm calling prometheus.metrics every time I create a new server, but it is using a single registry.
Being able to add a prefix (either replacing, or appending to the default socket_io_ would resolve this.
In my app I have multiple sockets (one to the browser, one to an internal service and so on). This is a problem when using this client as
prom-client
gives the error:Error: A metric with the name socket_io_connected has already been registered.
. That seems fair enough since I'm callingprometheus.metrics
every time I create a new server, but it is using a single registry.Being able to add a prefix (either replacing, or appending to the default
socket_io_
would resolve this.Thanks!