voxpupuli/puppet-facette

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

Homepage:

Size: 90

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Facette

This module works only with Puppet 3.8.7 with the future parser enabled or Puppet 4.

Module description

Facette.io is time series data visualization and graphing software. This module installs and manages Facette for you.

Setup
What facette affects
Beginning with facette

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.

Usage
Adding providers

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"
}

Overriding facette configuration

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.

Controlling package and service state

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'

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.