Closed karzak closed 5 years ago
That's an issue with Prometheus client. It has to be a singleton.
@karzak would it make more sense to combine the stats from all processes or disable Prometheus client on all but one process? (i.e. What works best for your use case?)
I don't have strong feelings on the issue, but I would say combined stats.
Running ilp-connector at 22.1.3. If you call
createApp
on multiple connectors in the same process, the prometheus client in the stats middleware throws an error:To reproduce: https://gist.github.com/karzak/351882b5cf265893ff46e0cc83bcc825