Forge Home

facette

A module to manage Facette

9,501 downloads

4,245 latest version

4.6 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

  • 2.0.0 (latest)
  • 1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.0
released May 2nd 2019
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x
  • Puppet >= 5.5.8 < 7.0.0

Start using this module

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

Add this module to your Puppetfile:

mod 'puppet-facette', '2.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add puppet-facette
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install puppet-facette --version 2.0.0

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

puppet/facette — version 2.0.0 May 2nd 2019

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

  • Facette APT PPA
  • Configuration files
  • Package/service/configuration for Facette
  • Provider configuration

Beginning with facette

To have Facette installed and configured out of the box simply include the facette module:

include 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:

class { '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:

facette::providers:
  collectd:
    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.

class { 'facette':
    config => { 'base_dir' => '/var' },
}
facette::config:
  base_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.

class { 'facette':
    state => { 'package' => 'latest', 'service' => 'stopped' }
}
facette::state:
  package: 'latest'
  service: 'stopped'