Forge Home

telegraf

Configuration and management of InfluxData's Telegraf metrics collection agent

1,018,305 downloads

646,759 latest version

5.0 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

  • 1.5.0 (latest)
  • 1.4.0
  • 1.3.0
  • 1.2.1
  • 1.2.0
  • 1.1.3
  • 1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.0
  • 0.0.5
  • 0.0.4
  • 0.0.3
  • 0.0.2 (deleted)
released Mar 2nd 2016
This version is compatible with:
  • ,

Start using this module

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

Add this module to your Puppetfile:

mod 'datacentred-telegraf', '0.0.5'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add datacentred-telegraf
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install datacentred-telegraf --version 0.0.5

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

datacentred/telegraf — version 0.0.5 Mar 2nd 2016

telegraf

Table of Contents

  1. Overview
  2. Setup
  3. Usage
  4. Limitations
  5. Development

Overview

A Puppet module to manage configuration of InfluxData's Telegraf metrics collection agent.

Setup

There's a couple of fairly standard dependencies for this module, as follows:

Usage

Telegraf can be installed with a very basic configuration by just including the class:

include ::telegraf

However, you'll probably want to override the default settings with a useful set of 'inputs' and 'outputs'. The general recommendation is to use Hiera, populated with something such as the following:

telegraf::global_tags:
  role: "%{::role}"
  domain: "%{::domain}"
telegraf::outputs:
  influxdb:
    urls: '["https://influxdb0.vagrant.dev:8086"]'
    database: 'telegraf'
    username: 'test'
    password: 'test'
telegraf::inputs:
  cpu:
    percpu: true
    totalcpu: true
  mem:
  io:
  net:
  disk: 
    ignore_fs: '["tmpfs", "devtmpfs"]'
  diskio:
  swap:
  system:

Limitations

This module has been developed and tested against both Ubuntu 14.04 and Debian 8.2, although support for other distributions / operating systems is planned. Feel free to assist with development in this regard!

The configuration generated with this module is only compatible with newer releases of Telegraf, i.e 0.10.x. It won't work with the 0.2.x series.

Development

Fork, hack, test, raise a PR.