mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-13 19:22:05 +00:00
Add a dependency on `prom-client` and emit a basic latency metric for testing purposes. Add a new configuration file for enabling/disabling prometheus exporter and configuring the listen address.
10 lines
351 B
JavaScript
10 lines
351 B
JavaScript
const assert = require('assert');
|
|
const PrometheusConfig = require('../../lib/configuration/prometheusconfig').PrometheusConfig;
|
|
|
|
describe('PrometheusConfig', () => {
|
|
describe('#constructor', () => {
|
|
it('defaults to enabled=false', () => {
|
|
assert.strictEqual(new PrometheusConfig().isEnabled(), false);
|
|
});
|
|
});
|
|
});
|