The configurations related to Metricbeat are stored in a configuration file named metricbeat.yml
, and it uses YAML syntax.
The metricbeat.yml
file contains the following:
- Module configuration
- General settings
- Output configuration
- Processor configuration
- Path configuration
- Dashboard configuration
- Logging configuration
Let's explore some of these sections.
Note
The location of the metricbeat.yml
file will be present in the installation directory if .zip
or .tar
files are used for installation. If .dep
or .rpm
is used for installation, then it will be present in the /etc/metricbeat
location.
Metricbeat comes bundled with various modules to collect metrics from the system and applications such as Apache, MongoDB, Redis, MySQL, and so on.
Metricbeat provides two ways of enabling modules and metricsets:
- Enabling module configs in the
modules.d
directory - Enabling module configs in the
metricbeat.yml
file