kayobe/ansible/roles/node-exporter
Jon Davies a19501a174 Added Prometheus node exporter role (#34)
* Added roles/node-exporter.

* node-exporter.yml: Deploy on all overcloud hosts.

* node-exporter: deploy: Use command variable.

* node-exporter: README: Fixed role name.

* node-exporter: Do not enable by default.
2017-10-26 14:39:26 +01:00
..
defaults Added Prometheus node exporter role (#34) 2017-10-26 14:39:26 +01:00
tasks Added Prometheus node exporter role (#34) 2017-10-26 14:39:26 +01:00
README.md Added Prometheus node exporter role (#34) 2017-10-26 14:39:26 +01:00

Prometheus Node Exporter

This role can be used to configure a Prometheus node exporter running in a Docker container.

Requirements

The host executing the role has the following requirements:

  • Docker engine
  • docker-py >= 1.7.0

Role Variables

nodeexporter_enabled: Whether the Node Exporter is enabled. Defaults to true. nodeexporter_namespace: Docker image namespace. Defaults to prom. nodeexporter_image: Docker image name. nodeexporter_tag: Docker image tag. Defaults to latest. nodeexporter_image_full: Full docker image specification. nodeexporter_restart_policy: Docker restart policy for Node Exporter container. Defaults to unless-stopped. nodeexporter_restart_retries: Number of Docker restarts. Defaults to 10.

Dependencies

None

Example Playbook

The following playbook configures Node Exporter.

---
- hosts: node-exporter
  roles:
    - role: node-exporter

Author Information