Skip to content

The plugin-driven server agent for collecting & reporting metrics.

License

Notifications You must be signed in to change notification settings

phemmer/telegraf

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2659ac5 · Jul 13, 2021
Apr 16, 2021
Mar 19, 2021
Apr 13, 2021
Mar 5, 2021
Apr 16, 2021
Apr 16, 2021
Apr 19, 2021
Apr 16, 2021
Mar 25, 2021
Apr 9, 2021
Apr 16, 2021
Apr 13, 2021
Apr 13, 2021
Jul 13, 2021
Apr 16, 2021
Apr 13, 2021
Apr 13, 2021
Nov 23, 2020
Jan 6, 2021
Mar 30, 2021
Mar 3, 2021
Apr 7, 2021
Jan 26, 2021
Apr 5, 2021
Jun 30, 2020
Mar 30, 2021
Mar 18, 2021
Mar 29, 2019
Jun 5, 2020
Mar 17, 2021
Apr 9, 2021
Apr 13, 2021
Apr 13, 2021
Mar 5, 2021
Oct 14, 2020
Apr 6, 2021
Oct 14, 2020
Mar 18, 2021
Oct 14, 2020

Repository files navigation

Telegraf Circle CI Docker pulls Total alerts

Slack Status

Telegraf is an agent for collecting, processing, aggregating, and writing metrics.

Design goals are to have a minimal memory footprint with a plugin system so that developers in the community can easily add support for collecting metrics.

Telegraf is plugin-driven and has the concept of 4 distinct plugin types:

  1. Input Plugins collect metrics from the system, services, or 3rd party APIs
  2. Processor Plugins transform, decorate, and/or filter metrics
  3. Aggregator Plugins create aggregate metrics (e.g. mean, min, max, quantiles, etc.)
  4. Output Plugins write metrics to various destinations

New plugins are designed to be easy to contribute, pull requests are welcomed and we work to incorporate as many pull requests as possible.

Try in Browser 🚀

You can try Telegraf right in your browser in the Telegraf playground.

Contributing

There are many ways to contribute:

Minimum Requirements

Telegraf shares the same minimum requirements as Go:

  • Linux kernel version 2.6.23 or later
  • Windows 7 or later
  • FreeBSD 11.2 or later
  • MacOS 10.11 El Capitan or later

Installation:

You can download the binaries directly from the downloads page or from the releases section.

Ansible Role:

Ansible role: https://github.com/rossmcdonald/telegraf

From Source:

Telegraf requires Go version 1.14 or newer, the Makefile requires GNU make.

  1. Install Go >=1.14 (1.15 recommended)
  2. Clone the Telegraf repository:
    cd ~/src
    git clone https://github.com/influxdata/telegraf.git
    
  3. Run make from the source directory
    cd ~/src/telegraf
    make
    

Changelog

View the changelog for the latest updates and changes by version.

Nightly Builds

These builds are generated from the master branch:

How to use it:

See usage with:

telegraf --help

Generate a telegraf config file:

telegraf config > telegraf.conf

Generate config with only cpu input & influxdb output plugins defined:

telegraf --section-filter agent:inputs:outputs --input-filter cpu --output-filter influxdb config

Run a single telegraf collection, outputting metrics to stdout:

telegraf --config telegraf.conf --test

Run telegraf with all plugins defined in config file:

telegraf --config telegraf.conf

Run telegraf, enabling the cpu & memory input, and influxdb output plugins:

telegraf --config telegraf.conf --input-filter cpu:mem --output-filter influxdb

Documentation

Latest Release Documentation.

For documentation on the latest development code see the documentation index.

Input Plugins

Parsers

Serializers

Processor Plugins

Aggregator Plugins

Output Plugins

About

The plugin-driven server agent for collecting & reporting metrics.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.9%
  • Other 1.1%