Go to file
Sven Rebhan 528c37bf8a Update changelog for v1.26.1
(cherry picked from commit ef6ebe8103b4376f014a713432f5439b36e64341)
2023-04-03 21:53:21 +02:00
.circleci chore: Update circleci macos runners (#12887) 2023-03-21 16:38:47 +01:00
.github fix(govulncheck): Downgrade govulncheck to fix github action (#12973) 2023-03-28 08:39:58 -06:00
agent chore: Don't use all default exclude patterns for golangci-lint (#12969) 2023-03-29 09:50:00 +02:00
assets docs: improve documentation around contribution (#10825) 2022-03-28 09:47:02 -06:00
cmd/telegraf chore: Enable G112 and G114 rules for gosec (#12986) 2023-04-03 15:23:05 +02:00
config fix(secret): Add function to set a secret (#13012) 2023-04-03 07:01:47 -06:00
docs chore(deps): Bump github.com/shirou/gopsutil from 3.23.2 to 3.23.3 (#13017) 2023-04-03 20:27:19 +02:00
etc/logrotate.d chore: Generate config at build time (#12766) 2023-03-01 22:22:53 +01:00
filter chore: update to go1.19.1 (#11776) 2022-09-08 12:49:36 -06:00
internal docs: Fix various typos in comments (#12888) 2023-03-21 16:27:38 +01:00
logger chore: wrap long lines in other locations (#12219) 2022-11-11 06:32:11 -07:00
metric chore: Remove `revive:unhandled-error` - `errcheck` is more flexible (#13008) 2023-04-03 07:19:43 -06:00
models chore: Remove `revive:unhandled-error` - `errcheck` is more flexible (#13008) 2023-04-03 07:19:43 -06:00
persister feat: Plugin state-persistence (#12166) 2023-03-01 15:34:48 -07:00
plugins feat(serializer.prometheusremote): Improve performance (#12971) 2023-04-03 12:44:08 -06:00
scripts fix(systemd): Increase lock memory for service to 8192kb (#12990) 2023-03-30 19:51:43 +02:00
selfstat chore: Remove `revive:unhandled-error` - `errcheck` is more flexible (#13008) 2023-04-03 07:19:43 -06:00
testutil feat(inputs.radius): Add plugin for simple radius auth response time monitoring (#12736) 2023-03-09 09:00:42 -07:00
tools chore: Enable G107 rule for gosec (#13010) 2023-04-03 20:29:58 +02:00
.gitattributes docs: Clean up make docs on windows (#12796) 2023-03-07 09:40:13 +01:00
.gitignore chore: Generate config at build time (#12766) 2023-03-01 22:22:53 +01:00
.golangci.yml chore: Enable G101 rule for gosec (#13009) 2023-04-03 20:31:08 +02:00
.markdownlint.yml feat: Implement deprecation infrastructure (#10200) 2021-12-01 12:38:43 -07:00
.markdownlintignore feat(tools): Allow to markdown includes for sections (#12075) 2022-10-24 23:22:18 +02:00
CHANGELOG.md Update changelog for v1.26.1 2023-04-03 21:53:21 +02:00
CODE_OF_CONDUCT.md docs: add Contributor Covenant Code of Conduct (#12215) 2022-11-10 11:40:30 -07:00
CONTRIBUTING.md chore: mention make lint in PR template and contributing doc (#12703) 2023-02-17 13:00:42 -07:00
EXTERNAL_PLUGINS.md docs: Add homekit plugin as external plugin (#12874) 2023-03-17 07:42:52 -06:00
LICENSE Build packages in makefile (#7759) 2020-06-30 00:15:28 -07:00
Makefile fix(makefile): Re-add build tags flag to go build (#12847) 2023-03-13 09:08:52 -06:00
README.md docs: Update minimum documented go version (#12869) 2023-03-15 17:51:32 +01:00
SECURITY.md chore: clean up all markdown lint errors in root directory (#10154) 2021-11-24 11:45:31 -07:00
accumulator.go docs(typo): update wording (#12885) 2023-03-17 07:41:21 -06: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.27.0 2023-03-13 13:38:23 -06:00
go.mod chore(deps): Bump github.com/shirou/gopsutil from 3.23.2 to 3.23.3 (#13017) 2023-04-03 20:27:19 +02:00
go.sum chore(deps): Bump github.com/shirou/gopsutil from 3.23.2 to 3.23.3 (#13017) 2023-04-03 20:27:19 +02:00
info.plist Mac Packaging / Notarization (#8878) 2021-03-05 10:14:01 -05:00
input.go add plugin documentation 2020-10-14 12:27:16 -04:00
metric.go feat(processors): Add lookup processor (#12809) 2023-03-08 10:44:23 -07:00
output.go docs(typo): output.go (#12873) 2023-03-14 13:47:05 -06:00
parser.go chore(processors): Convert processors to `ParserPlugin`s (#11600) 2022-09-26 22:24:34 +02:00
plugin.go feat: Plugin state-persistence (#12166) 2023-03-01 15:34:48 -07:00
processor.go chore: Review of //nolint comments (#12088) 2022-10-26 12:06:08 +02:00
secretstore.go feat: secret-store implementation (#11232) 2022-12-08 09:53:06 -07:00

README.md

Telegraf

tiger

Contribute Slack Status Circle CI GoDoc Docker pulls Go Report Card

Telegraf is an agent for collecting, processing, aggregating, and writing metrics. Based on a plugin system to enable developers in the community to easily add support for additional metric collection. There are four distinct types of plugins:

  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. Consider looking at the list of external plugins as well.

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

Obtaining Telegraf

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

Binary Downloads

Binary downloads are available from the InfluxData downloads page or from each GitHub Releases page.

Package Repository

InfluxData also provides a package repo that contains both DEB and RPM downloads.

For deb-based platforms (e.g. Ubuntu and Debian) run the following to add the repo key and setup a new sources.list entry:

# influxdata-archive_compat.key GPG fingerprint:
#     9D53 9D90 D332 8DC7 D6C8 D3B9 D8FF 8E1F 7DF8 B07E
wget -q https://repos.influxdata.com/influxdata-archive_compat.key
echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg > /dev/null
echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list
sudo apt-get update && sudo apt-get install telegraf

For RPM-based platforms (e.g. RHEL, CentOS) use the following to create a repo file and install telegraf:

# influxdata-archive_compat.key GPG fingerprint:
#     9D53 9D90 D332 8DC7 D6C8 D3B9 D8FF 8E1F 7DF8 B07E
cat <<EOF | sudo tee /etc/yum.repos.d/influxdata.repo
[influxdata]
name = InfluxData Repository - Stable
baseurl = https://repos.influxdata.com/stable/\$basearch/main
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdata-archive_compat.key
EOF
sudo yum install telegraf

Build From Source

Telegraf requires Go version 1.20 or newer and the Makefile requires GNU make.

On Windows, the makefile requires the use of a bash terminal to support all makefile targets. An easy option to get bash for windows is using the version that comes with git for windows.

  1. Install Go

  2. Clone the Telegraf repository:

    git clone https://github.com/influxdata/telegraf.git
    
  3. Run make build from the source directory

    cd telegraf
    make build
    

Nightly Builds

Nightly builds are available, generated from the master branch.

3rd Party Builds

Builds for other platforms or package formats are provided by members of theTelegraf community. These packages are not built, tested, or supported by the Telegraf project or InfluxData. Please get in touch with the package author if support is needed:

Getting Started

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 config --section-filter agent:inputs:outputs --input-filter cpu --output-filter influxdb

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

Contribute to the Project

Telegraf is an MIT licensed open source project and we love our community. The fastest way to get something fixed is to open a PR. Check out our contributing guide if you're interested in helping out. Also, join us on our Community Slack or Community Page if you have questions or comments for our engineering teams.

If your completely new to Telegraf and InfluxDB, you can also enroll for free at InfluxDB university to take courses to learn more.

Documentation

Latest Release Documentation

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