Skip to content

fbuchmeier/ansible-prometheus-node-exporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: prometheus-node-exporter

An Ansible role that installs Prometheus Node Exporter on Ubuntu|Debian|Redhat-based machines with systemd|Upstart|sysvinit.

Requirements

All needed packages will be installed with this role.

Role Variables

Variable Type Choices Default Comment
prometheus_node_exporter_version string See node_exporter releases 0.15.1 Version of node_exporter that will be installed. Minimal supported version: 0.15
prometheus_node_exporter_release_name string node_exporter-{{ prometheus_node_exporter_version }}.linux-amd64 Name of the binary that will be downloaed from the release page
prometheus_node_exporter_enabled_collectors list List of flags conntrack, diskstats, entropy, filefd, filesystem, loadavg, mdadm, meminfo, netdev, netstat, stat, textfile, time, vmstat List of enabled collector
prometheus_node_exporter_config_flags dict Dict of key, value options to add to the start command line

Dependencies

  • UnderGreen.prometheus-exporters-common

Example Playbook

- hosts: node-exporters
  roles:
    - role: UnderGreen.prometheus-node-exporter
      prometheus_node_exporter_version: 0.15.1
      prometheus_node_exporter_enabled_collectors:
        - conntrack
        - cpu
        - diskstats
        - entropy
        - filefd
        - filesystem
        - loadavg
        - mdadm
        - meminfo
        - netdev
        - netstat
        - stat
        - textfile
        - time
        - vmstat
      prometheus_node_exporter_config_flags:
        'web.listen-address': '0.0.0.0:9100'
        'log.level': 'info'

Note:

Due to prometheus/node_exporter#640 and prometheus/node_exporter#639 changes, this role can only support the minimum version 0.15 of node_exporter.

License

GPLv2

About

Ansible role for deploying Prometheus node exporter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%