Forge Home

prometheus_node_exporter

Puppet module to install and configure Prometheus Node Exporter

151 downloads

87 latest version

3.1 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

  • 1.0.1 (latest)
  • 1.0.0
released Jun 15th 2024
This version is compatible with:
  • Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2021.7.x
  • Puppet >= 7.24 < 9.0.0
  • , , , , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'psreed-prometheus_node_exporter', '1.0.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add psreed-prometheus_node_exporter
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install psreed-prometheus_node_exporter --version 1.0.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

psreed/prometheus_node_exporter — version 1.0.1 Jun 15th 2024

prometheus_node_exporter

Puppet module to install and configure Prometheus Node Exporter

See REFERENCE.md for parameter references.

extra_confguration_options and handling parameters with an optional [no-] prefix

--web.config.file and --web.listen-address have explicit module parameters and should not be included with extra_configuration_options.

Other parameters supported by the node_exporter binary can be added using the extra_configuration_options module parameter.

Parameters with an optional [no-] prefix flag (--[no-]collector.zfs, for exmpale) are supplied to the module via true/false values.

For example:

--no-collector.zfs would be represented using '--collector.zfs' => false in Puppet DSL or '--collector.xfs': false in Hiera YAML.

--collector.zfs would be represented using '--collector.zfs' => true in Puppet DSL or '--collector.xfs': true in Hiera YAML.

Hiera:

All parameters are supported for automatic lookup from Hiera.

Example:

prometheus_node_exporter::basic_auth_enabled: true
prometheus_node_exporter::basic_auth_hash_salt: DontUseThisHashSalt123
prometheus_node_exporter::basic_auth_password: DontUseThisPassword
prometheus_node_exporter::tls_use_puppet_certificates: true
prometheus_node_exporter::extra_configuration_options:
  - '--collector.textfile.directory': /var/lib/node_exporter/textfile
    '--collector.xfs': false
    '--collector.zfs': false
    '--log.level': debug

Contributing

Pull requests from forks are reviewed and accepted as time allows. Please use the associated Issues section in Github to report any issues to be corrected.