constructor(broker, opts) {
		this.broker = broker;
		this.logger = broker.getLogger("metrics");

		this.dirty = true;

		if (opts === true || opts === false) opts = { enabled: opts };

		this.opts = _.defaultsDeep({}, opts, {
			enabled: true,
			collectProcessMetrics: process.env.NODE_ENV !== "test",
			collectInterval: 5,

			reporter: false,

			defaultBuckets: [1, 5, 10, 25, 50, 100, 250, 500, 1000, 2500, 5000, 10000], // in milliseconds
			defaultQuantiles: [0.5, 0.9, 0.95, 0.99, 0.999], // percentage
			defaultMaxAgeSeconds: 60,
			defaultAgeBuckets: 10,
			defaultAggregator: "sum"
		});

		this.store = new Map();

		if (this.opts.enabled) this.logger.info("Metrics: Enabled");
	}
Creates an instance of MetricRegistry.

@param {ServiceBroker} broker
@param {Object} opts
@memberof MetricRegistry