Created
March 28, 2020 22:23
-
-
Save tapionx/284c45ee911741f4d0fcdadc51043e92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.3" | |
services: | |
mm: | |
image: misi/mm:v3.2 | |
working_dir: /opt/multiparty-meeting/server | |
entrypoint: ./mm_entrypoint.sh | |
restart: unless-stopped | |
image: misi/mm:latest | |
environment: | |
- BASEDIR=/opt | |
- MM=multiparty-meeting | |
- NODE_ENV=production | |
volumes: | |
- ./configs/server:/opt/multiparty-meeting/server/config | |
- ./configs/app:/opt/multiparty-meeting/server/public/config | |
- ./certs:/opt/multiparty-meeting/server/certs | |
- ./images:/opt/multiparty-meeting/server/public/images | |
- ./mm_entrypoint.sh:/opt/multiparty-meeting/server/mm_entrypoint.sh | |
network_mode: "host" | |
stdin_open: true | |
tty: true | |
redis: | |
image: redis | |
network_mode: "host" | |
entrypoint: redis-server /usr/local/etc/redis/redis.conf | |
restart: unless-stopped | |
volumes: | |
- ./configs/redis:/usr/local/etc/redis | |
coturn: | |
image: instrumentisto/coturn | |
network_mode: "host" | |
stop_signal: SIGKILL | |
restart: unless-stopped | |
volumes: | |
- ./coturn.conf:/etc/coturn/turnserver.conf | |
# node_exporter: | |
# image: prom/node-exporter | |
# network_mode: "host" | |
# restart: unless-stopped | |
exporter: | |
image: 'marckhouzam/custom-prometheus-exporter' | |
restart: unless-stopped | |
ports: | |
- '9550:9550' | |
volumes: | |
- '/var/run/docker.sock:/var/run/docker.sock' | |
- '/home/root/mm/exporter-config.yml:/edumeet-exporter.yaml' | |
command: '-f /edumeet-exporter.yaml' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: edumeet-exporter | |
port: 9550 | |
endpoint: /metrics | |
metrics: | |
- name: edumeet_rooms | |
help: The count of rooms | |
type: gauge | |
executions: | |
- type: sh | |
command: docker exec -t mm_mm_1 /opt/multiparty-meeting/server/connect.js --stats | grep 'rooms' | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" | sed -E 's/rooms:([0-9]+)/\1/g'|sed -e 's/[\r\n]//g' | |
timeout: 5000 | |
- name: edumeet_peers | |
help: The count of peers | |
type: gauge | |
executions: | |
- type: sh | |
command: docker exec -t mm_mm_1 /opt/multiparty-meeting/server/connect.js --stats | grep 'peers' | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" | sed -E 's/peers:([0-9]+)/\1/g'|sed -e 's/[\r\n]//g' | |
timeout: 5000 | |
- name: edumeet_cpu_usage | |
help: CPU usage | |
type: gauge | |
executions: | |
- type: sh | |
command: top -bn 1 | grep -i '^CPU' | sed 's/%//g' | awk '{print (100.0-$8)/100 }' | |
timeout: 5000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment