diff --git a/jibri.yml b/jibri.yml index 057a45e0c2..fc68a07f0a 100644 --- a/jibri.yml +++ b/jibri.yml @@ -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 diff --git a/jibri/rootfs/defaults/jibri.conf b/jibri/rootfs/defaults/jibri.conf index 993052f34b..33199cb6c1 100644 --- a/jibri/rootfs/defaults/jibri.conf +++ b/jibri/rootfs/defaults/jibri.conf @@ -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 -}} @@ -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"