Coder Social home page Coder Social logo

ansible_node_exporter's Introduction

Role Name

This role installs a prometheus node exporter instance and configures it to expose metrics. The role is based on this ansible-node-exporter role.

Requirements

The role was developed and tested on a machine running Debian. If you want to secure your installation by using TLS, you need to provide appropriate certificates.

Role Variables

Name Required/Default Description
node_exporter_version latest The version of node exporter that should be installed. If empty or set to latest the variable will be set to the newest release.
node_exporter_web_listen_address 0.0.0.0:9100 The IP address the service should bind to.
node_exporter_web_telemetry_path /metrics Path where the metrics should be served.
node_exporter_textfile_dir /var/lib/node_exporter Directory for the textfile exporter.
node_exporter_tls_server_config {} Config for the TLS feature.
node_exporter_basic_auth_users {} List of users and BCRYPT password hashes for basic auth.
node_exporter_enabled_collectors {"systemd":{}, {"textfile": {"directory": "{{ node_exporter_textfile_dir}}"}}} Collectors that will be enabled and their respective configuration. In addition to the collectors defined here there may be others, that are enabled by default.
node_exporter_disabled_collectors {} Collectors that would be enabled by default, but should be disabled.

Example

The following example playbook assumes that you cloned this role to roles/node_exporter (i.e. the name of the role is node_exporter instead of ansible_node_exporter).

- hosts: monitoring
  roles:
    - role: node_exporter
      node_exporter_tls_server_config:
        cert_file: /etc/certs/example.com.crt
        key_file: /etc/certs/example.com.key
      node_exporter_basic_auth_users:
        example: $2b$10$LqwcCTNLbemzY8/RMuGTFuB0xKL0CcMcLsZRubJCnnDUNWvucjb3K #user example with password example

License

This work is licensed under the MIT License.

Author Information

ansible_node_exporter's People

Contributors

sf2311 avatar neumantm avatar

Watchers

James Cloos avatar  avatar

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.