An Ansible role that installs Prometheus Node Exporter on Ubuntu|Debian|Redhat-based machines with systemd|Upstart|sysvinit.
All needed packages will be installed with this role.
Variable | Type | Choices | Default | Comment |
---|---|---|---|---|
prometheus_node_exporter_version | string | See node_exporter releases | 1.0.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 | [] | List of collectors that are disabled by default to enable |
prometheus_node_exporter_disabled_collectors | list | List of flags | [] | List of collectors that are enabled by default to disable |
prometheus_node_exporter_config_flags | dict | Dict of key, value options to add to the start command line | ||
prometheus_node_exporter_url | string | not defined | Custom URL to download node_exporter if you can't access to github |
- hosts: node-exporters
roles:
- role: undergreen.prometheus-node-exporter
prometheus_node_exporter_version: 1.0.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': ':9100'
'log.level': 'info'
Forked from UnderGreen/ansible-prometheus-node-exporter with dependency integrated to be a standalone role.
GPLv2