buluma.metricbeat
Ansible Role metricbeat
This role installs and sets up Metricbeat, and helps manage its modules.
| GitHub | Version | Issues | Pull Requests | Downloads | 
|---|---|---|---|---|
Example Playbook
Here's how to use this role, taken from molecule/default/converge.yml. It is tested every time there is a push, pull request, or release.
---
- name: Converge
  hosts: all
  become: true
  gather_facts: true
  roles:
    - role: buluma.metricbeat
      metricbeat_elasticsearch_password: "My-P@s5w0rd."
      metricbeat_modules:
        - name: system
          state: enabled
Make sure the machine is ready. This is done in CI with molecule/default/prepare.yml:
---
- name: Prepare
  hosts: all
  become: true
  gather_facts: false
  roles:
    - role: buluma.bootstrap
    - role: buluma.core_dependencies
    - role: buluma.elastic_repo
You can find more information and examples on using these roles.
Role Variables
Default values for the variables are in defaults/main.yml:
---
# defaults file for metricbeat
# The version of metricbeat to install.
metricbeat_version: "7.17.6"
# List of modules to enable.
metricbeat_modules: []
# List of elasticsearch hosts.
metricbeat_elasticsearch_hosts:
  - "http://localhost:9200"
# Username for elasticsearch.
metricbeat_elasticsearch_username: elastic
# Password for elasticsearch.
metricbeat_elasticsearch_password: ""
# URL for Kibana.
metricbeat_kibana_host: "http://localhost:5601"
Requirements
- Required pip packages are listed in requirements.txt.
State of Used Roles
These roles are used to set up the system. You can choose to set up your system differently.
| Requirement | GitHub | Version | 
|---|---|---|
| buluma.bootstrap | ||
| buluma.core_dependencies | ||
| buluma.elastic_repo | 
Context
This role works together with many other roles. For more details, check the documentation of these roles.
Here's an overview of related roles:

Compatibility
This role has been tested on these container images:
| container | tags | 
|---|---|
| Amazon | all | 
| Debian | all | 
| EL | all | 
| Fedora | all | 
| Ubuntu | focal, bionic | 
| Kali | all | 
You need at least Ansible version 2.12. Tests have been conducted on:
- The previous version.
- The current version.
- The development version.
If you notice any problems, please report them on GitHub.
Changelog
Check the Role History for more details.
License
This role uses the Apache-2.0 license.
Author Information
Created by Shadow Walker.
Install and configure Metricbeat, manage Metricbeat modules.
ansible-galaxy install buluma.metricbeat