Skip to content

Commit

Permalink
jibri: flag to support prometheus-style metrics (#1768)
Browse files Browse the repository at this point in the history
* jibri: flag to support prometheus-style metrics
  • Loading branch information
aaronkvanmeerten authored Mar 21, 2024
1 parent 80fc10e commit a5ebb99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions jibri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ services:
- IGNORE_CERTIFICATE_ERRORS
- JIBRI_WEBHOOK_SUBSCRIBERS
- JIBRI_INSTANCE_ID
- JIBRI_ENABLE_PROMETHEUS
- JIBRI_HTTP_API_EXTERNAL_PORT
- JIBRI_HTTP_API_INTERNAL_PORT
- JIBRI_RECORDING_RESOLUTION
Expand Down
6 changes: 4 additions & 2 deletions jibri/rootfs/defaults/jibri.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{ $ENABLE_PROMETHEUS := .Env.JIBRI_ENABLE_PROMETHEUS | default "false" | toBool -}}
{{ $JIBRI_RECORDING_RESOLUTION := .Env.JIBRI_RECORDING_RESOLUTION | default "1280x720" -}}
{{ $JIBRI_RECORDING_VIDEO_ENCODE_PRESET := .Env.JIBRI_RECORDING_VIDEO_ENCODE_PRESET | default "veryfast" -}}
{{ $JIBRI_RECORDING_CONSTANT_RATE_FACTOR := .Env.JIBRI_RECORDING_CONSTANT_RATE_FACTOR | default 25 -}}
Expand Down Expand Up @@ -76,13 +77,14 @@ jibri {
}
{{ end -}}

{{ if .Env.ENABLE_STATS_D -}}
stats {
{{- if .Env.ENABLE_STATS_D }}
enable-stats-d = {{ .Env.ENABLE_STATS_D }}
host = "{{ $STATSD_HOST }}"
port = {{ $STATSD_PORT }}
{{- end }}
prometheus.enabled = {{ $ENABLE_PROMETHEUS }}
}
{{ end -}}
}

include "xmpp.conf"

0 comments on commit a5ebb99

Please sign in to comment.