diff --git a/jibri.yml b/jibri.yml index 38eb698..62027e1 100644 --- a/jibri.yml +++ b/jibri.yml @@ -33,6 +33,8 @@ services: - JIBRI_RECORDING_DIR - JIBRI_FINALIZE_RECORDING_SCRIPT_PATH - JIBRI_STRIP_DOMAIN_JID + - JIBRI_STATSD_HOST + - JIBRI_STATSD_PORT - LOCAL_ADDRESS - PUBLIC_URL - TZ diff --git a/jibri/rootfs/defaults/jibri.conf b/jibri/rootfs/defaults/jibri.conf index c4a616a..3436c23 100644 --- a/jibri/rootfs/defaults/jibri.conf +++ b/jibri/rootfs/defaults/jibri.conf @@ -15,6 +15,8 @@ {{ $XMPP_PORT := .Env.XMPP_PORT | default "5222" -}} {{ $XMPP_SERVER := .Env.XMPP_SERVER | default "xmpp.meet.jitsi" -}} {{ $XMPP_SERVERS := splitList "," $XMPP_SERVER -}} +{{ $STATSD_HOST := .Env.JIBRI_STATSD_HOST | default "localhost" -}} +{{ $STATSD_PORT := .Env.JIBRI_STATSD_PORT | default "8125" -}} {{/* assign env from context, preserve during range when . is re-assigned */}} {{ $ENV := .Env -}} @@ -130,6 +132,8 @@ jibri { {{ if .Env.ENABLE_STATS_D -}} stats { enable-stats-d = {{ .Env.ENABLE_STATS_D }} + host = "{{ $STATSD_HOST }}" + port = {{ $STATSD_PORT }} } {{ end -}} } \ No newline at end of file