tbaczynski.node_exporter

Role Name

Install Prometheus Node_Exporter from GitHub repository

Requirements

None

Role Variables

All variables are defined in the defaults:

---
# Defaults for node_exporter

prometheus_user:                       prometheus
prometheus_group:                      prometheus
prometheus_install_path:               '/opt/prometheus'
prometheus_config_path:                '/etc/prometheus'
prometheus_pid_path:                   '/var/run/prometheus'
prometheus_loglevel:                   'info'

prometheus_node_exporter_install_path: '{{ prometheus_install_path }}'
prometheus_node_exporter_config_path:  '{{ prometheus_config_path }}'
prometheus_node_exporter_pid_path:     '{{ prometheus_pid_path }}'
prometheus_node_exporter_user:         '{{ prometheus_user }}'
prometheus_node_exporter_group:        '{{ prometheus_group }}'
prometheus_node_exporter_loglevel:     '{{ prometheus_loglevel }}'
prometheus_node_exporter_listen:       '{{ prometheus_node_exporter_listen_ip }}:{{ prometheus_node_exporter_listen_port }}'
prometheus_node_exporter_listen_port:  '9100'
prometheus_node_exporter_listen_ip:    ''
prometheus_node_exporter_version:      '0.17.0'

enable_ufw:                            false
prometheus_node_exporter_src_access:
  - "{{ ansible_default_ipv4.network }}/{{ ansible_default_ipv4.netmask }}"

For a typical setup, you can enable the UFW firewall and create a source access list. Based on the defined variables, you can also set additional common variables for the Prometheus stack.

For Debian 7, you can use prometheus_node_exporter_validate_certs=false to fix issues with the GitHub certificate (though this is not recommended).

Dependencies

To set up the firewall, you need the UFW role.

Example Playbook

Here's how to use your role with parameters passed in:

    - hosts: servers
      roles:
         - role: node_exporter

License

BSD

Author Information

Tomasz Baczynski

Informazioni sul progetto

Install and setup node_exporter agent service

Installa
ansible-galaxy install tbaczynski.node_exporter
Licenza
other
Download
13.1k
Proprietario