Metricbeat configuration guide
General Configuration
Configuraiton file metricbeat.yml.
Directory config
# general settings
path.home: {{ install_dir }}/metricbeat
path.config: {{ install_dir }}/metricbeat
path.data: {{ install_dir }}/metricbeat/data
Input config
metricbeat.config.modules:
path: {{ install_dir }}/metricbeat/modules.d/*.yml
reload.enabled: false
Fields config
fields:
ns: {{ server_group }} # rpa, bi, master, ocr, agent
Name config
# The name of the shipper that publishes the network data. It can be used to group
# all the transactions sent by a single shipper in the web interface.
name: "{{ hostname }}"
Output config
# output settings
output.logstash:
hosts: ["{{ int_hostname }}:{{ logstash_metrics_port }}"] # logstash_metric_port=4569 by default
ssl.certificate_authorities: ["{{ install_dir + 'metricbeat/ssl/ca.crt' }}"]
Input Configuration
Configuration files modules.d/*.yml.
System metrics
Configuration file system.yml.
The module collects such system metrics as CPU/Memory/Disk/Processes.
- module: system
period: 30s
metricsets:
- cpu
- load
- memory
- network
- process
- process_summary
- diskio
processes: ['.*']
process.include_top_n:
by_cpu: 10 # include top {{ metricbeat_top_processes_cpu_count }} processes by CPU
by_memory: 10 # include top 10 {{ metricbeat_top_processes_memory_count }} processes by memory
- module: system
period: 30s
metricsets:
- filesystem
- fsstat
filesystem.ignore_types: [nfs, smbfs, autofs, tmpfs, devtmpfs]
processors:
- drop_event.when.regexp:
system.filesystem.mount_point: '^/(sys|cgroup|proc|dev|etc|host|lib)($|/)'
- module: system
period: 15m
metricsets:
- uptime
Workfusion custom metrics
Configuration file workfusion.yml.
The module collects directory metrics where WorkFusion is installed.
- module: workfusion
metricsets: ["directory"]
enabled: true
period: 60s
hosts: ["localhost"]
path: {{ install_dir }}
- module: workfusion
metricsets: ["volume"]
enabled: true
period: 60s
hosts: ["localhost"]
path: {{ install_dir }}
alias: install