Update README.md
[KisSync.git] / src / configuration / prometheusconfig.js
blobaf45aef11c44d91272a9dad70e6111c0144d6cd3
1 class PrometheusConfig {
2 constructor(config = { prometheus: { enabled: false } }) {
3 this.config = config.prometheus;
6 isEnabled() {
7 return this.config.enabled;
10 getPort() {
11 return this.config.port;
14 getHost() {
15 return this.config.host;
18 getPath() {
19 return this.config.path;
23 export { PrometheusConfig };