mirror of https://github.com/OpenVidu/openvidu.git
openvidu-pro: Add to metricbeat the ability to monitor docker containers
parent
5874870f38
commit
d100cd8e95
|
@ -1,4 +1,18 @@
|
|||
metricbeat.modules:
|
||||
- module: docker
|
||||
metricsets:
|
||||
- "container"
|
||||
- "cpu"
|
||||
- "diskio"
|
||||
- "event"
|
||||
- "healthcheck"
|
||||
- "info"
|
||||
- "image"
|
||||
- "memory"
|
||||
- "network"
|
||||
hosts: ["unix:///var/run/docker.sock"]
|
||||
period: ${OPENVIDU_PRO_STATS_MONITORING_INTERVAL}s
|
||||
enabled: true
|
||||
- module: system
|
||||
metricsets:
|
||||
- cpu
|
||||
|
|
|
@ -1,11 +1,25 @@
|
|||
metricbeat.modules:
|
||||
- module: nginx
|
||||
- module: docker
|
||||
metricsets:
|
||||
- "container"
|
||||
- "cpu"
|
||||
- "diskio"
|
||||
- "event"
|
||||
- "healthcheck"
|
||||
- "info"
|
||||
- "image"
|
||||
- "memory"
|
||||
- "network"
|
||||
hosts: ["unix:///var/run/docker.sock"]
|
||||
period: ${OPENVIDU_PRO_STATS_MONITORING_INTERVAL}s
|
||||
enabled: true
|
||||
- module: nginx
|
||||
metricsets: ["stubstatus"]
|
||||
enabled: true
|
||||
period: 10s
|
||||
period: ${OPENVIDU_PRO_STATS_MONITORING_INTERVAL}s
|
||||
hosts: ["http://127.0.0.1"]
|
||||
server_status_path: "nginx_status"
|
||||
- module: system
|
||||
- module: system
|
||||
metricsets:
|
||||
- cpu
|
||||
- diskio
|
||||
|
|
|
@ -143,12 +143,14 @@ services:
|
|||
image: docker.elastic.co/beats/metricbeat-oss:7.8.0
|
||||
network_mode: host
|
||||
restart: always
|
||||
user: root
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- OPENVIDU_PRO_ELASTICSEARCH_HOST=${OPENVIDU_PRO_ELASTICSEARCH_HOST:-http://127.0.0.1:9200}
|
||||
- OPENVIDU_PRO_STATS_MONITORING_INTERVAL=${OPENVIDU_PRO_STATS_MONITORING_INTERVAL:-10}
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./beats/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml:ro
|
||||
- /proc:/hostfs/proc:ro
|
||||
- /sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro
|
||||
|
|
Loading…
Reference in New Issue