Go to file
David Bennett c25ae5295b
Validate the response from InfluxDB after writing/creating a database to avoid json parsing panics/errors (#8775)
* Validate the response from InfluxDB after writing/creating a database to avoid json parsing panics.

* Testing windows signing - ignore

* Update config.yml

* adding signing to workflow - test

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* revert circleci test changes

* Various updates
2021-02-10 14:45:07 -05:00
.circleci Move windows tests to circle-ci, remove appveyor (#8844) 2021-02-10 11:28:57 -06:00
.github Create dependabot.yml (#8614) 2021-01-19 11:17:36 -05:00
agent fix minor agent race condition around error messages (#7999) 2020-08-18 11:27:58 -04:00
cmd/telegraf Add Event Log support for Windows (#8616) 2021-01-19 11:03:19 -05:00
config adds missing & to flush_jitter output ref (#8838) 2021-02-09 14:12:49 -05:00
docs AWS EC2 metadata processor Using StreamingProcessor (#8707) 2021-02-04 17:02:27 -05:00
etc Update changelog 2021-01-27 17:00:12 -05:00
filter Add test for include/exclude filter (#5193) 2018-12-26 13:15:13 -08:00
internal Expose v4/v6-only connection-schemes through GosnmpWrapper (#8804) 2021-02-10 09:28:37 -07:00
logger Integration test audit (#8725) 2021-01-26 11:06:12 -07:00
metric Optimize SeriesGrouper & aggregators.merge (#8391) 2021-01-07 11:39:12 -05:00
models Revive fixes - part 1 (#8797) 2021-02-08 11:18:40 -05:00
plugins Validate the response from InfluxDB after writing/creating a database to avoid json parsing panics/errors (#8775) 2021-02-10 14:45:07 -05:00
scripts Removing .lgtm.yml (#8664) 2021-01-11 10:53:17 -06:00
selfstat Fix assorted spelling mistakes (#7507) 2020-05-15 15:43:32 -07:00
testutil changed TestThreadStats acc to wait for 2 and added warning comment (#8592) 2020-12-17 19:32:49 -05:00
.gitattributes Fix tests for Windows - part 1 (#8414) 2020-11-23 10:40:32 -05:00
.gitignore Upgrade circle-ci config to v2.1 (#8621) 2021-01-06 16:23:29 -06:00
CHANGELOG.md Update CHANGELOG.md (#8782) 2021-02-01 13:46:30 -08:00
CONTRIBUTING.md Integration test audit (#8725) 2021-01-26 11:06:12 -07:00
EXTERNAL_PLUGINS.md Add geoip external project reference 2021-01-27 15:58:31 -05:00
LICENSE Build packages in makefile (#7759) 2020-06-30 00:15:28 -07:00
Makefile Increase build verbosity with go mod download -x (#8496) 2021-02-05 09:57:10 -05:00
README.md New Intel PowerStat input plugin (#8488) 2020-12-10 13:23:27 -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
build_version.txt Update build version to 1.18.0 2020-12-18 18:32:33 -05:00
docker-compose.yml Integration test audit (#8725) 2021-01-26 11:06:12 -07:00
go.mod AWS EC2 metadata processor Using StreamingProcessor (#8707) 2021-02-04 17:02:27 -05:00
go.sum AWS EC2 metadata processor Using StreamingProcessor (#8707) 2021-02-04 17:02:27 -05:00
input.go add plugin documentation 2020-10-14 12:27:16 -04:00
metric.go Fix spelling errors in comments and documentation (#7492) 2020-05-14 00:41:58 -07:00
output.go add plugin documentation 2020-10-14 12:27:16 -04:00
plugin.go add plugin documentation 2020-10-14 12:27:16 -04:00
processor.go add plugin documentation 2020-10-14 12:27:16 -04:00

README.md

Telegraf Circle CI Docker pulls

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

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