Forge Home


This module provides GDash, a dashboard for Graphite.


9,942 latest version

3.2 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

  • 0.1.1 (latest)
  • 0.1.0
released Dec 30th 2013

Start using this module

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

Add this module to your Puppetfile:

mod 'bfraser-gdash', '0.1.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add bfraser-gdash
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install bfraser-gdash --version 0.1.1

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.



bfraser/gdash — version 0.1.1 Dec 30th 2013


Build Status

####Table of Contents

  1. Overview
  2. Module Description
  3. Setup
  4. Implementation
  5. Limitations
  6. Copyright and License


This module installs GDash and enables creation of dashboards using manifests.

##Module Description

GDash is a dashboard for Graphite, therefore it is assumed you have a Graphite installation GDash will be pulling data from. This module does not manage Graphite in any way.


This module assumes that you will be serving GDash using a Rails server such as Passenger. It will:

  • Install all required Ruby gems
  • Clone the GDash Git repository
  • Create a default dashboard configured to use your Graphite server
  • Provide a framework for you to declare graphs and fields in your manifests

Add the following to your manifest to create an Apache virtual host to serve GDash using Passenger. NOTE This requires the puppetlabs-apache module.

    # Enable Apache modules
    class { "apache::mod::headers": }
    class { "apache::mod::passenger":
        passenger_high_performance  => "On",
        passenger_pool_idle_time    => 600,
        passenger_max_requests      => 1000,
        passenger_root              => $apache::params::passenger_root,
        passenger_ruby              => $apache::params::passenger_ruby,
        passenger_max_pool_size     => 12,

    # Create Apache virtual host
    apache::vhost { "":
        servername      => "",
        port            => "9292",
        docroot         => "/usr/local/gdash/public",
        error_log_file  => "gdash-error.log",
        access_log_file => "gdash-access.log",
        directories     => [
                path            => "/usr/local/gdash/",
                options         => [ "None" ],
                allow           => "from All",
                allow_override  => [ "None" ],
                order           => "Allow,Deny",

###Beginning with GDash

To install GDash with the default parameters:

    class { 'gdash': }

This assumes that you have Graphite running on the same server as GDash, and that you want to install GDash to /usr/local/gdash. To establish customized parameters:

    class { 'gdash':
      graphite_host     => '',
      gdash_root        => '/opt/gdash',


###Classes and Defined Types

####Defined Type: gdash::category

Creates a category for your dashboard(s) to be grouped into.

    gdash::category { "gdash": }

####Defined Type: gdash::dashboard

Creates a dashboard for your graphs to be organized under.

    gdash::dashboard { "gdash":
        name        => "GDash",
        description => "GDash Server",
        category    => "gdash",
        require     => Gdash::Category["gdash"],

####Defined Type: gdash::graph

Creates a graph in a dashboard.

    gdash::graph { "gdash_cpu_usage":
        name        => "GDash CPU Usage",
        vtitle      => "percent",
        area        => "none",
        ymin        => 0,
        ymax        => 100,
        description => "CPU Usage for the GDash server",
        dashboard   => "gdash",
        category    => "gdash",
        require     => Gdash::Dashboard["gdash"],

####Defined Type: gdash::field

Adds a field to a graph.

        gdash::field { "${hostname}_cpu_user":
        scale       => 1,
        graph       => "gdash_cpu_usage",
        color       => "yellow",
        alias       => "$hostname User",
        data        => "sumSeries(servers.${hostname}",
        category    => "gdash",
        require     => Gdash::Graph["gdash_cpu_usage"],


This module currently makes use of three templates: one containing the configuration for GDash's main dashboard; one used to create custom dashboard; and one to create graphs.


This module has been tested on CentOS 6.4 with Apache and Passenger. Other configurations should work with minimal effort, as only package names may change.

##Copyright and License

Copyright (C) 2013 Bill Fraser

Bill can be contacted at:

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.