Go to file
Russ Savage b8b6f2e533
fix(readmes): updates to internal and proxmox readmes (#7982)
2020-08-13 23:50:09 -04:00
.circleci update go versions: 1.14.5, 1.13.13 (#7837) 2020-07-14 20:21:02 -04:00
.github Update Support.md 2020-08-13 18:39:25 -04:00
agent Log after interval has elapsed; skip short intervals (#7854) 2020-07-17 13:46:07 -07:00
cmd/telegraf Add support for once mode; run processors and aggregators during test (#7474) 2020-06-01 15:26:20 -07:00
config fix issue with execd restart_delay being ignored (#7867) 2020-07-21 13:06:33 -04:00
docs Add details to connect to InfluxDB OSS 2 and Cloud 2 (#7953) 2020-08-06 16:43:21 -04:00
etc Update telegraf.conf 2020-07-16 10:00:50 -07:00
filter Add test for include/exclude filter (#5193) 2018-12-26 13:15:13 -08:00
internal prefer testify error funcs over nil checks (#7857) 2020-07-20 10:34:46 -04:00
logger Skip logging when logfile is unset (#6648) 2019-11-11 17:03:03 -08:00
metric Fix assorted spelling mistakes (#7507) 2020-05-15 15:43:32 -07:00
models shim logger improvements (#7865) 2020-07-22 14:29:50 -04:00
plugins fix(readmes): updates to internal and proxmox readmes (#7982) 2020-08-13 23:50:09 -04:00
scripts fixes issue with rpm /var/log/telegraf permissions (#7909) 2020-07-28 11:26:09 -04:00
selfstat Fix assorted spelling mistakes (#7507) 2020-05-15 15:43:32 -07:00
testutil Fix test race in kafka_consumer (#7797) 2020-07-07 14:04:55 -07:00
.gitattributes Use merge=union driver for go.sum 2020-03-16 10:02:49 -07:00
.gitignore Dynatrace output plugin (#7881) 2020-08-12 11:51:53 -04:00
CHANGELOG.md Update changelog 2020-07-31 13:40:56 -06:00
CONTRIBUTING.md Update docs for execd plugins (#7465) 2020-05-14 11:19:19 -04:00
EXTERNAL_PLUGINS.md Support for AWS Cloudwatch Alarms #7931 (#7932) 2020-08-07 10:30:33 -04:00
LICENSE Build packages in makefile (#7759) 2020-06-30 00:15:28 -07:00
Makefile Fix arch name in deb/rpm builds (#7877) 2020-07-22 14:59:48 -07:00
README.md Update readme and changelog 2020-07-07 14:44:38 -07:00
accumulator.go Fix aggregator window and shutdown of multiple aggregators (#5644) 2019-03-29 15:40:33 -07:00
aggregator.go add support for streaming processors (#7634) 2020-06-05 10:43:43 -04:00
appveyor.yml Update to Go 1.14.3 with testing using 1.13.11 (#7564) 2020-05-26 15:40:25 -07:00
docker-compose.yml Fix issues with failing tests on darwin (#7042) 2020-02-18 16:13:53 -08:00
go.mod Proxmox plugin (#7922) 2020-08-12 12:26:38 -04:00
go.sum Support utf-16 in file and tail inputs (#7792) 2020-07-07 12:43:32 -07:00
input.go add support for streaming processors (#7634) 2020-06-05 10:43:43 -04:00
metric.go Fix spelling errors in comments and documentation (#7492) 2020-05-14 00:41:58 -07:00
output.go add support for streaming processors (#7634) 2020-06-05 10:43:43 -04:00
plugin.go add support for streaming processors (#7634) 2020-06-05 10:43:43 -04:00
processor.go Add starlark processor (#7660) 2020-06-23 14:15:14 -07:00

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