openvidu-pro: Update metricbeat to properly manage system metrics

pull/609/head
cruizba 2021-02-03 19:57:20 +01:00
parent 45eb8fb610
commit ff497a1ad1
1 changed files with 4 additions and 2 deletions

View File

@ -143,7 +143,6 @@ services:
image: docker.elastic.co/beats/metricbeat-oss:7.8.0 image: docker.elastic.co/beats/metricbeat-oss:7.8.0
network_mode: host network_mode: host
restart: always restart: always
user: root
env_file: env_file:
- .env - .env
environment: environment:
@ -151,8 +150,11 @@ services:
- OPENVIDU_PRO_STATS_MONITORING_INTERVAL=${OPENVIDU_PRO_STATS_MONITORING_INTERVAL:-10} - OPENVIDU_PRO_STATS_MONITORING_INTERVAL=${OPENVIDU_PRO_STATS_MONITORING_INTERVAL:-10}
volumes: volumes:
- ./beats/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml:ro - ./beats/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml:ro
- /proc:/hostfs/proc:ro
- /sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro
- /:/hostfs:ro
command: > command: >
/bin/bash -c "metricbeat -e -strict.perms=false /bin/bash -c "metricbeat -e -strict.perms=false -e -system.hostfs=/hostfs
`if [ ! -z $ELASTICSEARCH_USERNAME ]; then echo '-E output.elasticsearch.username=$ELASTICSEARCH_USERNAME'; fi` `if [ ! -z $ELASTICSEARCH_USERNAME ]; then echo '-E output.elasticsearch.username=$ELASTICSEARCH_USERNAME'; fi`
`if [ ! -z $ELASTICSEARCH_PASSWORD ]; then echo '-E output.elasticsearch.password=$ELASTICSEARCH_PASSWORD'; fi`" `if [ ! -z $ELASTICSEARCH_PASSWORD ]; then echo '-E output.elasticsearch.password=$ELASTICSEARCH_PASSWORD'; fi`"
logging: logging: