From ce950939dff8a002c094943a53469a4dc7738b27 Mon Sep 17 00:00:00 2001 From: Christian Paul <christianp@matrix.org> Date: Tue, 2 Feb 2021 13:23:50 +0100 Subject: [PATCH] Metrics.enable: Correct config sample and schema --- config/config.sample.yaml | 2 +- config/config.schema.yaml | 2 +- src/config.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.sample.yaml b/config/config.sample.yaml index 07c3539..e884b48 100644 --- a/config/config.sample.yaml +++ b/config/config.sample.yaml @@ -106,6 +106,6 @@ ghosts: usernamePattern: ":username#:tag" # Prometheus-compatible metrics endpoint metrics: - enabled: false + enable: false port: 9001 host: "127.0.0.1" \ No newline at end of file diff --git a/config/config.schema.yaml b/config/config.schema.yaml index 560508e..cff8071 100644 --- a/config/config.schema.yaml +++ b/config/config.schema.yaml @@ -127,7 +127,7 @@ properties: metrics: type: "object" properties: - enabled: + enable: type: "boolean" port: type: "number" diff --git a/src/config.ts b/src/config.ts index 2706ba2..525fad2 100644 --- a/src/config.ts +++ b/src/config.ts @@ -158,7 +158,7 @@ class DiscordBridgeConfigGhosts { } export class DiscordBridgeConfigMetrics { - public enable: boolean; + public enable: boolean = false; public port: number = 9001; public host: string = "127.0.0.1"; } -- GitLab