Forge Home

telegraf

Configuration and management of InfluxData's Telegraf metrics collection agent

1,018,305 downloads

646,759 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

  • 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 Feb 29th 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.3'
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.3

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.3 Feb 29th 2016

telegraf

Table of Contents

  1. Overview
  2. Module Description
  3. Setup
  4. Usage
  5. Limitations
  6. Development

Overview

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

Module Description

This module configures the necessary repositories for Telegraf and then takes care of installing the version specified, along with a sensible default configuration.

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 simply doing the following:

include ::telegraf

However, you'll probably want to override the default settings with a useful set of 'inputs' and 'outputs'. The recommendation is to use Hiera, populated with something like 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 Ubuntu 14.04, 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.

Development

Fork, hack, test, and then raise a pull request.