
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:
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.
Telegraf shares the same minimum requirements as Go:
View the changelog for the latest updates and changes by version.
Binary downloads are available from the InfluxData downloads page or from each GitHub Releases page.
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:
wget -qO- https://repos.influxdata.com/influxdb.key | sudo tee /etc/apt/trusted.gpg.d/influxdb.asc >/dev/null
source /etc/os-release
echo "deb https://repos.influxdata.com/${ID} ${VERSION_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.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:
cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
[influxdb]
name = InfluxDB Repository - RHEL $releasever
baseurl = https://repos.influxdata.com/rhel/$releasever/$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
EOF
sudo yum install telegraf
Telegraf requires Go version 1.17 or newer, the Makefile requires GNU make.
Install Go >=1.17 (1.17.2 recommended)
Clone the Telegraf repository:
git clone https://github.com/influxdata/telegraf.git
Run make from the source directory
cd telegraf
make
Nightly builds are available, generated from the master branch.
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:
See usage with:
telegraf --help
telegraf config > telegraf.conf
telegraf --section-filter agent:inputs:outputs --input-filter cpu --output-filter influxdb config
telegraf --config telegraf.conf --test
telegraf --config telegraf.conf
telegraf --config telegraf.conf --input-filter cpu:mem --output-filter influxdb
For documentation on the latest development code see the documentation index.
There are many ways to contribute:
61 commits
Go
99.3%

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:
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.
Telegraf shares the same minimum requirements as Go:
View the changelog for the latest updates and changes by version.
Binary downloads are available from the InfluxData downloads page or from each GitHub Releases page.
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:
wget -qO- https://repos.influxdata.com/influxdb.key | sudo tee /etc/apt/trusted.gpg.d/influxdb.asc >/dev/null
source /etc/os-release
echo "deb https://repos.influxdata.com/${ID} ${VERSION_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.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:
cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
[influxdb]
name = InfluxDB Repository - RHEL $releasever
baseurl = https://repos.influxdata.com/rhel/$releasever/$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
EOF
sudo yum install telegraf
Telegraf requires Go version 1.17 or newer, the Makefile requires GNU make.
Install Go >=1.17 (1.17.2 recommended)
Clone the Telegraf repository:
git clone https://github.com/influxdata/telegraf.git
Run make from the source directory
cd telegraf
make
Nightly builds are available, generated from the master branch.
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:
See usage with:
telegraf --help
telegraf config > telegraf.conf
telegraf --section-filter agent:inputs:outputs --input-filter cpu --output-filter influxdb config
telegraf --config telegraf.conf --test
telegraf --config telegraf.conf
telegraf --config telegraf.conf --input-filter cpu:mem --output-filter influxdb
For documentation on the latest development code see the documentation index.
There are many ways to contribute:
61 commits
Go
99.3%