diff --git a/config/config.sample.yaml b/config/config.sample.yaml index 07c3539ac470b29d9d4c6f92e1052bfbf794f48c..e884b4888bb14602a09ef3d46a136ec6e4f9d7c2 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 560508e582cad9f167a0a27fd3cba30fa71023e9..cff80713089f0405c5c84dd611cfbe04338516c4 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 2706ba201c1d3b8600523183838eabbf561765eb..525fad298efd43be8b47797413e143fb64f30e83 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"; }