jibri: flag to support prometheus-style metrics (#1768)

* jibri: flag to support prometheus-style metrics
pull/1770/head
Aaron van Meerten 8 months ago committed by GitHub
parent 80fc10ebf7
commit a5ebb99e31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      jibri.yml
  2. 6
      jibri/rootfs/defaults/jibri.conf

@ -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

@ -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"

Loading…
Cancel
Save