I use mountebank to run load tests, because of that, I use the imposter metrics to get feedback about the time to generate the responses. After the release 2.8.1 the metrics about imposters stop showing. The reason is, the module imposter.js started to be loaded before the method prometheus.register.clear(); to be called. I created a method to create the metrics inside the function create and an object to control if metrics already created.
I use mountebank to run load tests, because of that, I use the imposter metrics to get feedback about the time to generate the responses. After the release 2.8.1 the metrics about imposters stop showing. The reason is, the module imposter.js started to be loaded before the method prometheus.register.clear(); to be called. I created a method to create the metrics inside the function create and an object to control if metrics already created.
fix #718