openvidu-pro: minor fix metricbeat ilm and add metrics for elasticsearch

pull/609/head
cruizba 2021-02-03 19:25:09 +01:00
parent ce6beac85d
commit 45eb8fb610
3 changed files with 28 additions and 1 deletions

View File

@ -2,7 +2,7 @@ metricbeat.modules:
- module: system - module: system
metricsets: metricsets:
- cpu - cpu
#- diskio - diskio
- memory - memory
- network - network
- filesystem - filesystem

View File

@ -5,6 +5,32 @@ metricbeat.modules:
period: 10s period: 10s
hosts: ["http://127.0.0.1"] hosts: ["http://127.0.0.1"]
server_status_path: "nginx_status" server_status_path: "nginx_status"
- module: system
metricsets:
- cpu
- diskio
- memory
- network
- filesystem
- fsstat
- process_summary
- uptime
filesystem.ignore_types: [nfs, smbfs, autofs, devtmpfs, devpts, hugetlbfs, tmpfs, sysfs, securityfs, cgroup2, cgroup, pstore, debugfs, configfs, fusectl, proc, fuse.lxcfs, squashfs]
processes: ['.*']
processors:
- drop_event:
when:
or:
- regexp:
system.network.name: '^(veth|lo|docker|br-)($|)'
- regexp:
system.filesystem.mount_point: '^/(sys|cgroup|proc|dev|etc|host)($|/)'
- regexp:
system.filesystem.mount_point: '^/hostfs/(sys|cgroup|proc|dev|etc|host)($|/)'
enabled: true
period: ${OPENVIDU_PRO_STATS_MONITORING_INTERVAL}s
cpu.metrics: [normalized_percentages]
output: output:
elasticsearch: elasticsearch:
hosts: ["${OPENVIDU_PRO_ELASTICSEARCH_HOST}"] hosts: ["${OPENVIDU_PRO_ELASTICSEARCH_HOST}"]
setup.ilm.enabled: false

View File

@ -148,6 +148,7 @@ services:
- .env - .env
environment: environment:
- OPENVIDU_PRO_ELASTICSEARCH_HOST=${OPENVIDU_PRO_ELASTICSEARCH_HOST:-http://127.0.0.1:9200} - 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: volumes:
- ./beats/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml:ro - ./beats/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml:ro
command: > command: >