Install and configure Elastic metricbeat.
- hosts: servers
roles:
- MattiDeGrauwe.metricbeat
vars:
- beats_config_file: "path to configuration file"
For complete documentation on configuration options see the metricbeat, filebeat and packetbeat documentation.
-
beats_package_version
(default "5.2.2") The package version of the beat. -
beats_install
(default true) Whether to install the beat. -
beats_config_file
(required) set url to the desired configuration file
Metricbeat comes packaged with a script that you can use to import the example dashboards, visualizations, and searches for Metricbeat. The script also creates an index pattern, metricbeat-*, for Metricbeat.
beats_dashboard_output_url
(default "localhost:9200") Initializes the host where the output of the predefined dashboards should be generated.
This role is based on Jmatt's Ansible Galaxy role "beats". It is a more complete implementation and less opinionated than this role. But it doesn't support v5 or follow the variable naming convention my roles follow. Thus this new role.
The MIT License. See the LICENSE file.