Version information
This version is compatible with:
- Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >= 4.7.0 < 6.0.0
- , , ,
Start using this module
Add this module to your Puppetfile:
mod 'gbloquel-postgres_exporter', '1.2.0'
Learn more about managing modules with a PuppetfileDocumentation
postgres_exporter
Table of Contents
- Description
- Setup - The basics of getting started with postgres_exporter
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Description
Installs the Prometheus Postgres Exporter.
Setup
Beginning with postgres_exporter
To configure a basic default postgres_exporter, declare the postgres_exporter class.
class { 'postgres_exporter':
}
Usage
All parameters for the postgres_exporter module are contained within main postgres_exporter
, so for any function of the module set the options you want. See the main usage below for examples.
Install and enable postgres_exporter
include postgres_exporter
Configure the datasource
class { 'postgres_exporter':
datasource => 'postgresql://postgres:password@localhost:5432/?sslmode=disable',
}
Use the flags
class { 'postgres_exporter':
flags => {
'web.listen-address' => ':9999',
'web.telemetry-path' => '/apis',
},
}
Add custom queries
class { 'postgres_exporter':
flags => {
'extend.query-path' => '/opt/postgres_exporter/query.yaml',
},
}
You need provided the file query.yaml
before. A example of format is available queries.yaml
Others parameters can be used see postgres_exporter
Limitations
Tested on Centos 7, but should be fine on any Linux that uses Systemd.
Development
In the Development section, tell other users the ground rules for contributing to your project and how they should submit their work.
Changelog
All notable changes to this project will be documented in this file.
Release 1.2
- Upgrade module to use postgres_exporter as default to 0.10.1 #10
Release 1.1
- Use postgres_exporter from prometheus community. #7
Release 1.0.2
Bugfixes
- use of version parameter #4
Release 1.0.1
Features
Bugfixes
- Manage flags #2
Known Issues
Release 1.0.0
Features
- Command line flags are available
- Custom queries can be done
Bugfixes
Known Issues
Release 0.1.2
Features
Bugfixes This release fixes a manifest typo.
Known Issues
Release 0.1.1
Features Initial version
Bugfixes
Known Issues
Dependencies
- puppetlabs-stdlib (>= 4.13.1)
- puppet-archive (>= 2.0.0)