Skip to content

Commit

Permalink
refactor(video): change prom exporter port to 3026
Browse files Browse the repository at this point in the history
  • Loading branch information
prlanzarin committed Apr 27, 2022
1 parent 5d24241 commit 063d649
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/default.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions docs/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion lib/video/metrics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 063d649

Please sign in to comment.