diff --git a/config/default.example.yml b/config/default.example.yml index 77ba31a3..3b20f10f 100644 --- a/config/default.example.yml +++ b/config/default.example.yml @@ -274,7 +274,7 @@ prometheus: # Video process metrics endpoint (video == webcam req handler, ...) video: host: localhost - port: 3018 + port: 3026 path: '/metrics' collectDefaultMetrics: false screenshare: diff --git a/docs/metrics.md b/docs/metrics.md index 1a2a8167..83b47e3b 100644 --- a/docs/metrics.md +++ b/docs/metrics.md @@ -36,7 +36,7 @@ prometheus: # Video process metrics endpoint (video == webcam req handler, ...) video: host: localhost - port: 3018 + port: 3026 path: '/metrics' collectDefaultMetrics: false # Screenshare process metrics endpoint @@ -133,7 +133,7 @@ sfu_module_crashes{module="core",signal="SIGABRT"} 1 ## Exposed metrics: video process The video process instrumentation can be enabled via the prometheus.video configuration object. Its metrics are exposed on a *separate* HTTP endpoint (path, host and port are configurable). -Default is localhost:3018/metrics. +Default is localhost:3026/metrics. Check the aforementioned environment variables or the inline comments in default.example.yml to get directions on how to enable this. diff --git a/lib/video/metrics/index.js b/lib/video/metrics/index.js index cc4e66ad..7426386b 100644 --- a/lib/video/metrics/index.js +++ b/lib/video/metrics/index.js @@ -7,7 +7,7 @@ const { } = config.has('prometheus') ? config.get('prometheus') : { enabled: false, video: {} }; const { host: METRICS_HOST = 'localhost', - port: METRICS_PORT = '3018', + port: METRICS_PORT = '3026', path: METRICS_PATH = '/metrics', collectDefaultMetrics: COLLECT_DEFAULT_METRICS, } = VIDEO_METRICS_CONFIG;