talira

Telegraf

Open source agent for collecting metrics from infrastructure, applications, and devices

open sourceMITself-hostablefree

Telegraf is a plugin-driven agent for collecting, processing, aggregating and writing metrics, logs and other data. A TOML file picks plugins from a catalog of 300 to 400: inputs for systems, Docker, databases, SNMP, MQTT, Modbus and OPC UA devices, OpenTelemetry and Prometheus; processors and aggregators that transform data and compute running summaries; and outputs to InfluxDB, Prometheus, Kafka and many other destinations, with buffering in memory or on disk and retries. It compiles to a single static Go binary for Linux, macOS, Windows and FreeBSD. InfluxData makes it under the MIT licence and also offers Telegraf Controller for managing fleets of agents, with a Telegraf Enterprise licence for advanced features.

Ways to install

Problems it solves

  • collect CPU, memory, disk and network stats from every server into my time series database
  • read sensor values from Modbus and OPC UA devices on the factory floor and store them
  • poll network switches over SNMP and graph interface traffic
  • subscribe to MQTT topics from IoT devices and write the readings to a database
  • one agent with plugins for hundreds of systems instead of a custom script for each
  • compute per-minute averages, minimums and maximums before writing metrics
  • expose metrics from many sources on a Prometheus endpoint for scraping
  • collect Windows performance counters and event logs from our Windows servers
  • keep database passwords out of my metrics agent's config file
  • monitor Docker container stats and GPU usage on a home server
  • buffer metrics on disk when the database is unreachable and retry later

Features

  • input, processor, aggregator and output plugins (300+ in the repository, 400+ on the product page)
  • system monitoring inputs: CPU, memory, disk, network, SMART, Docker and Nvidia SMI
  • device inputs: OPC UA and Modbus; networking: Cisco Telemetry MDT and gNMI
  • messaging inputs: AMQP, Kafka and MQTT
  • OpenTelemetry input receiving traces, metrics, logs and profiles over gRPC
  • Prometheus input and Prometheus client output
  • Windows Event Log, WMI and Performance Counters inputs
  • parsers and serializers for JSON, CSV, Prometheus and InfluxDB line protocol
  • metric buffering in memory or on disk with retries
  • secret stores to keep credentials out of config files
View 4 more
  • external plugins through the execd shim
  • single static binary with no external dependencies
  • telegraf config, plugins and secrets commands
  • official Docker image and Helm charts (telegraf, telegraf-ds, telegraf-operator)

Capabilities

Has a command line toolplan not known
Takes pluginsplan not known

Alternatives

The same job

These do what Telegraf does.

  1. Netdata Full-stack observability: metrics, logs, traces and more, per second
  2. Node exporter Prometheus exporter for hardware and OS metrics exposed by *NIX kernels
  3. Vector A lightweight, ultra-fast tool for building observability pipelines
  4. OpenTelemetry Collector Vendor-agnostic way to receive, process and export telemetry data
  5. Fluent Bit Fast and lightweight telemetry agent for logs, metrics and traces
  6. Grafana Alloy OpenTelemetry Collector distribution with programmable pipelines

Compare Telegraf with the top 3