diff --git a/docker-compose.prometheus.yml b/docker-compose.prometheus.yml new file mode 100644 index 0000000..ab8d57d --- /dev/null +++ b/docker-compose.prometheus.yml @@ -0,0 +1,15 @@ +version: '3.6' + +services: + prometheus-exporter: + image: greenstatic/bigbluebutton-exporter:v0.5.0 + restart: unless-stopped + environment: + API_BASE_URL: http://10.7.7.1:8080/bigbluebutton/api/ + API_SECRET: ${SHARED_SECRET} + RECORDINGS_METRICS_READ_FROM_DISK: "false" + networks: + bbb-net: + ipv4_address: 10.7.7.33 + # volumes: + # - bigbluebutton:/var/bigbluebutton \ No newline at end of file diff --git a/mod/nginx/bbb/bbb-exporter.nginx b/mod/nginx/bbb/bbb-exporter.nginx new file mode 100644 index 0000000..2a2be48 --- /dev/null +++ b/mod/nginx/bbb/bbb-exporter.nginx @@ -0,0 +1,4 @@ +location /bbb-exporter { + proxy_pass http://10.7.7.33:9688; + proxy_http_version 1.1; +} \ No newline at end of file diff --git a/sample.env b/sample.env index e14e57d..46e6280 100644 --- a/sample.env +++ b/sample.env @@ -19,6 +19,11 @@ ENABLE_GREENLIGHT=true # used by some integrations #ENABLE_WEBHOOKS=true +# Prometheus Exporter +# serves the bigbluebutton-exporter under following URL: +# https://yourdomain/bbb-exporter +#ENABLE_PROMETHEUS_EXPORTER=true + # ==================================== # SECRETS # ==================================== diff --git a/scripts/compose b/scripts/compose index b2ecb46..f8421e9 100755 --- a/scripts/compose +++ b/scripts/compose @@ -33,4 +33,8 @@ if [ "$ENABLE_WEBHOOKS" == true ]; then COMPOSE_FILES="$COMPOSE_FILES -f docker-compose.webhooks.yml" fi +if [ "$ENABLE_PROMETHEUS_EXPORTER" == true ]; then + COMPOSE_FILES="$COMPOSE_FILES -f docker-compose.prometheus.yml" +fi + docker-compose $COMPOSE_FILES $@