Add exporter container if metrics shall be exposed.
This commit is contained in:
parent
7ab4f7ebe3
commit
eaec14a23f
6 changed files with 33 additions and 1 deletions
|
@ -46,6 +46,7 @@ Role Variables
|
||||||
| jitsi_public_url | The public URL under which Jitsi Meet can be accessed | http://localhost |
|
| jitsi_public_url | The public URL under which Jitsi Meet can be accessed | http://localhost |
|
||||||
| jitsi_timezone | | Europe/Amsterdam |
|
| jitsi_timezone | | Europe/Amsterdam |
|
||||||
| jitsi_virtual_host | The virtual host that is e.g. used by Traefik, usually part of the public url | localhost |
|
| jitsi_virtual_host | The virtual host that is e.g. used by Traefik, usually part of the public url | localhost |
|
||||||
|
| jitsi_expose_metrics | Determine whether an additional expoerter for the Jitsi metrics shall be run | False |
|
||||||
|
|
||||||
\* It is important to provide a dedicated secure password for each service. Generate passwords with e.g. `openssl rand -hex 16`
|
\* It is important to provide a dedicated secure password for each service. Generate passwords with e.g. `openssl rand -hex 16`
|
||||||
|
|
||||||
|
|
|
@ -18,5 +18,6 @@ jitsi_timezone: Europe/Amsterdam
|
||||||
jitsi_jvb_stun_servers: meet-jit-si-turnrelay.jitsi.net:443
|
jitsi_jvb_stun_servers: meet-jit-si-turnrelay.jitsi.net:443
|
||||||
jitsi_web_channel_last_n: 3
|
jitsi_web_channel_last_n: 3
|
||||||
jitsi_enable_third_party_requests: no
|
jitsi_enable_third_party_requests: no
|
||||||
|
jitsi_expose_metrics: False
|
||||||
# Internal variables
|
# Internal variables
|
||||||
jitsi_multitenant_postfix: "{{ '_' + jitsi_multitenant_label if (jitsi_multitenant_label) else '' }}"
|
jitsi_multitenant_postfix: "{{ '_' + jitsi_multitenant_label if (jitsi_multitenant_label) else '' }}"
|
2
src
2
src
|
@ -1 +1 @@
|
||||||
Subproject commit eae3f5ce2d7627afe4115f52a61cc7ae3e3e8a31
|
Subproject commit 9b686c6f4aa74cd33ddcd4dd35decc76a9470e1e
|
|
@ -62,6 +62,16 @@
|
||||||
mode: '0640'
|
mode: '0640'
|
||||||
tags: config
|
tags: config
|
||||||
|
|
||||||
|
- name: Provide metric exporter environment
|
||||||
|
template:
|
||||||
|
src: templates/exporter.env.j2
|
||||||
|
dest: "{{ jitsi_install_path }}/jitsi/exporter.env"
|
||||||
|
owner: "{{ jitsi_install_user }}"
|
||||||
|
group: "{{ jitsi_install_user }}"
|
||||||
|
mode: '0640'
|
||||||
|
tags: config
|
||||||
|
when: jitsi_expose_metrics
|
||||||
|
|
||||||
- name: "docker-compose: Teardown existing Jitsi service"
|
- name: "docker-compose: Teardown existing Jitsi service"
|
||||||
docker_compose:
|
docker_compose:
|
||||||
project_src: "{{ jitsi_install_path }}/jitsi/"
|
project_src: "{{ jitsi_install_path }}/jitsi/"
|
||||||
|
|
|
@ -179,6 +179,20 @@ services:
|
||||||
networks:
|
networks:
|
||||||
meet.jitsi:
|
meet.jitsi:
|
||||||
|
|
||||||
|
{% if jitsi_expose_metrics %}
|
||||||
|
# Data exporter
|
||||||
|
exporter:
|
||||||
|
image: goberle/jitsi-prom-exporter
|
||||||
|
restart: unless-stopped
|
||||||
|
env_file: exporter.env
|
||||||
|
depends_on:
|
||||||
|
- jicofo
|
||||||
|
networks:
|
||||||
|
# Expose the data exporter to the public network managed by traefik
|
||||||
|
public:
|
||||||
|
meet.jitsi:
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# Custom network so all services can communicate using a FQDN
|
# Custom network so all services can communicate using a FQDN
|
||||||
networks:
|
networks:
|
||||||
meet.jitsi:
|
meet.jitsi:
|
||||||
|
|
6
templates/exporter.env.j2
Normal file
6
templates/exporter.env.j2
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
XMPP_USER={{ jitsi_jicofo_auth_user }}
|
||||||
|
XMPP_PW={{ jitsi_jicofo_auth_password }}
|
||||||
|
XMPP_SERVER=xmpp.meet.jitsi
|
||||||
|
XMPP_PORT=5222
|
||||||
|
XMPP_AUTH_DOMAIN=auth.meet.jitsi
|
||||||
|
XMPP_INTERNAL_MUC_DOMAIN=internal-muc.meet.jitsi
|
Loading…
Add table
Reference in a new issue