jradtilbrook.metricbeat
Ansible Role: Metricbeat 
This role installs and sets up Metricbeat version 5.x for the Elastic stack.
It is specifically made for Ubuntu 16.04, but it should also work on other Debian versions.
Requirements
None.
Role Variables
metricbeat_modules
: This is a list that contains the settings for each module Metricbeat will monitor. Check the Metricbeat documentation for details on how to format this list.metricbeat_output
: This is a dictionary specifying where to send the collected events. More details on this can be found in the Metricbeat documentation.metricbeat_general_config
: This is the global setup for Metricbeat. It can include the name, extra fields, or tags that should be added to each event. Additional information is available in the Metricbeat documentation.metricbeat_install_state
: This helps in updating Metricbeat to newer versions if it's already installed. Uselatest
to enable this feature.
Resources
You can find Metricbeat documentation at the following link:
Dependencies
None.
Feel free to explore my other roles on Ansible Galaxy if you are setting up the entire Elastic Stack.
Example Playbook
- hosts: servers
become: yes
roles:
- role: jradtilbrook.metricbeat
License
MIT
Metricbeat (v5.x) for the Elastic stack on Ubuntu
ansible-galaxy install jradtilbrook.metricbeat