Name: puppet-facette
Owner: Vox Pupuli
Description: A module to manage http://facette.io
Created: 2015-11-09 22:50:52.0
Updated: 2018-05-23 05:59:12.0
Pushed: 2018-05-23 05:59:11.0
Size: 90
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This module works only with Puppet 3.8.7 with the future parser enabled or Puppet 4.
Facette.io is time series data visualization and graphing software. This module installs and manages Facette for you.
To have Facette installed and configured out of the box simply include the facette module:
ude facette
This will set up Facette but not configure any providers meaning it will not be able to read any metrics just yet.
Defining providers registers data origins in Facette, i.e. where to find sources and their metrics, and how to add them to the catalog.
This is done by passing a hash to the providers
parameter. The key is the
name you want the configuration file to get on disk and the value should be
another hash with all the configuration options.
In order to get access to RRD data outputted by collectd:
s { 'facette':
providers => { 'collectd' => {
'connector' => {
'path' => '/var/lib/collectd/rrd',
'pattern' => '(?P<source>[^/]+)/(?P<metric>.+).rrd',
'type' => 'rrd',
}}},
Instead of passing it in through Puppet you can use Hiera instead:
tte::providers:
llectd:
connector:
path: '/var/lib/collectd/rrd'
pattern: '(?P<source>[^/]+)/(?P<metric>.+).rrd'
type: 'rrd'
This will result in /etc/facette/providers/collectd.json
to be created with
the following content:
"connector": {
"path": "/var/lib/collectd/rrd",
"pattern": "(?P<source>[^/]+)/(?P<metric>.+).rrd",
"type": "rrd"
}
By default a /etc/facette/facette.json
will be created with a number of
settings. If you wish to override one of these settings simply pass a hash
to the config
parameter.
s { 'facette':
config => { 'base_dir' => '/var' },
aml
tte::config:
se_dir: '/var'
The available configuration options for Facette can be found in their documentation.
This module will ensure the package is installed and that the Facette service
is running. You can however tweak this behaviour by alteering the state
parameter.
s { 'facette':
state => { 'package' => 'latest', 'service' => 'stopped' }
aml
tte::state:
ckage: 'latest'
rvice: 'stopped'