Forge Home

node_exporter

Install, configure, and manage prometheus node_exporter

582 downloads

483 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.1 (latest)
  • 0.1.0
released May 27th 2022
This version is compatible with:
  • Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x
  • Puppet >= 6.21.0 < 8.0.0
  • ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'fauzi-node_exporter', '0.1.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add fauzi-node_exporter
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install fauzi-node_exporter --version 0.1.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

fauzi/node_exporter — version 0.1.1 May 27th 2022

node_exporter

  1. Overview
  2. Requirements
  3. Usage
  4. Development

Overview

A puppet module for setting up the Prometheus node_exporter service

Requirements

Although there are no specific requiremets, it worth noting that node_explorer by itself might be useless without a Prometheus server. There are modules ready in the forge for it, therefore it is out of the scope of this one.

Usage

Basic usage

This example would install and configure node_exporter for you, then create a service in systemd to manage it.

    class { 'node_exporter': }

Choosing a version

To select a different version than default versions (please check data/commons.yaml for more information), you must provide the version number you want installed, and the correspoding checsum.

    class { 'node_exporter':
      version       => '1.3.1',
    }
    class { 'node_exporter::install':
      checksum      => '68f3802c2dd3980667e4ba65ea2e1fb03f4a4ba026cca375f15a0390ff850949',
      checksum_type => 'sha256',
    }

Customization

Change default values, like for example the destination of the binary after extraction

    class { 'node_exporter':
      version       => '1.3.1',
    }

    class { 'node_exporter::install':
      install_path  => '/usr/local/bin',
      checksum      => '68f3802c2dd3980667e4ba65ea2e1fb03f4a4ba026cca375f15a0390ff850949',
      checksum_type => 'sha256',
    }

Using Hiera

You're encouraged to define your configuration using Hiera.

node_exporter::version: '1.3.0'
node_exporter::install::checksum: '68f3802c2dd3980667e4ba65ea2e1fb03f4a4ba026cca375f15a0390ff850949'
node_exporter::install::checksum_type: 'sha256'

Development

Contributing

Please use the GitHub issues functionality to report any bugs or requests for new features. Feel free to fork and submit pull requests for potential contributions.

Contributions must pass all existing tests, new features should provide additional unit/acceptance tests.