Skip to content
Ansible role for Node exporter
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
defaults
handlers
tasks
templates
vars
.ansible-lint
LICENSE
README.md

README.md

Ansible role for Node exporter

CircleCI

This role will setup Node exporter on any Linux machine using systemd.

Role Variables

  • node_exporter_version: the version of Node exporter that will be installed. (0.17.0).

The role will download the Node exporter release on the deployer and upload the binary to the target host.

If the /usr/local/bin/node_exporter binary already exists, the role will skip the install steps. You can force them (to update, for instance), by setting node_exporter_force_install to true.

  • node_exporter_system_group: the name of the group that will run Node exporter.(node-exporter)
  • node_exporter_system_user: the name of the user that will run Node exporter. Default to node_exporter_system_group.
  • node_exporter_web_listen_address: the address Node exporter will listen on. (0.0.0.0:9100)

Node exporter comes with a default set of enabled and disabled collectors.

You can enable more collectors with node_exporter_enabled_collectors.

The default is:

node_exporter_enabled_collectors:
  - systemd
  - ntp
  - filesystem:
      ignored-mount-points: "^/(sys|proc|dev)($|/)"
      ignored-fs-types: "^(sys|proc|auto)fs$"

To disable collectors, use node_exporter_enabled_collectors. It's empty by default.

Example playbook

---

- hosts: myhost
  roles: node-exporter

License

MIT. See LICENSE for more details.

Credit

This role is largely inspired by cloudalchemy/ansible-node-exporter.

Author Information

See my other Ansible roles at angristan/ansible-roles.

You can’t perform that action at this time.