prometheus_node_exporter

Puppet module to install and configure Prometheus Node Exporter

264 downloads

66 latest version

Version information

  • 1.0.2 (latest)
  • 1.0.1
  • 1.0.0
released May 2nd 2025
This version is compatible with:
  • Puppet Enterprise 2025.3.x, 2025.2.x, 2025.1.x, 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.2'
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.2

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.2 May 2nd 2025

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.