Giter Site home page Giter Site logo

bverschueren / ansible-prometheus-node-exporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from undergreen/ansible-prometheus-node-exporter

0.0 2.0 0.0 30 KB

Ansible role for deploying Prometheus node exporter

License: GNU General Public License v2.0

Shell 100.00%

ansible-prometheus-node-exporter's Introduction

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
prometheus_node_exporter_url string not defined Custom URL to download node_exporter if you can't access to github

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.