Skip to content
The plugin-driven server agent for collecting & reporting metrics.
Go Other
  1. Go 99.1%
  2. Other 0.9%
Branch: master
Clone or download

Latest commit

Latest commit f39a2f2 Jun 12, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Update to Go 1.14.3 with testing using 1.13.11 (#7564) May 26, 2020
.github Fix spelling errors in comments and documentation (#7492) May 14, 2020
agent Fix race issue in tick_test.go (#7663) Jun 11, 2020
cmd/telegraf Add support for once mode; run processors and aggregators during test ( Jun 1, 2020
config Add timezone configuration to csv data format (#7619) Jun 8, 2020
docs link to glob pattern docs (#7657) Jun 9, 2020
etc Add configurable separator graphite serializer and output (#7545) May 21, 2020
filter Add test for include/exclude filter (#5193) Dec 26, 2018
internal Add support for once mode; run processors and aggregators during test ( Jun 1, 2020
logger Skip logging when logfile is unset (#6648) Nov 12, 2019
metric Fix assorted spelling mistakes (#7507) May 15, 2020
models add support for streaming processors (#7634) Jun 5, 2020
plugins Remove trailing backslash from tag keys/values (#7652) Jun 13, 2020
scripts Change rpm dist packaging type for arm64 to aarch64 (#7645) Jun 8, 2020
selfstat Fix assorted spelling mistakes (#7507) May 15, 2020
testutil Fix spelling errors in comments and documentation (#7492) May 14, 2020
.gitattributes Use merge=union driver for go.sum Mar 16, 2020
.gitignore Update readme and changelog Mar 4, 2020
CHANGELOG.md Update changelog Jun 13, 2020
CONTRIBUTING.md Update docs for execd plugins (#7465) May 14, 2020
EXTERNAL_PLUGINS.md Add github.com/inabagumi/twitter-telegraf-plugin to list of external … May 28, 2020
LICENSE Update copyright date May 30, 2019
Makefile Add processor to look up service name by port (#7540) May 27, 2020
README.md Add newrelic output plugin (#7019) May 27, 2020
accumulator.go Fix aggregator window and shutdown of multiple aggregators (#5644) Mar 29, 2019
aggregator.go add support for streaming processors (#7634) Jun 5, 2020
appveyor.yml Update to Go 1.14.3 with testing using 1.13.11 (#7564) May 26, 2020
docker-compose.yml Fix issues with failing tests on darwin (#7042) Feb 19, 2020
go.mod Fix race issue in tick_test.go (#7663) Jun 11, 2020
go.sum Fix race issue in tick_test.go (#7663) Jun 11, 2020
input.go add support for streaming processors (#7634) Jun 5, 2020
metric.go Fix spelling errors in comments and documentation (#7492) May 14, 2020
output.go add support for streaming processors (#7634) Jun 5, 2020
plugin.go add support for streaming processors (#7634) Jun 5, 2020
processor.go add support for streaming processors (#7634) Jun 5, 2020

README.md

Telegraf Circle CI Docker pulls

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.13 or newer, the Makefile requires GNU make.

  1. Install Go >=1.13 (1.14 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

You can’t perform that action at this time.