---
title: Telegraf configuration examples
description: Complete example Telegraf configurations for common collection, processing, and writing scenarios.
url: https://docs.influxdata.com/telegraf/v1/examples/
estimated_tokens: 706
product: Telegraf Enterprise
version: v1
publisher: InfluxData
canonical: https://docs.influxdata.com/telegraf/v1/examples/
date: '2026-08-14T12:27:55-06:00'
lastmod: '2026-08-14T12:27:55-06:00'
---

Use complete, working Telegraf configurations for common scenarios.
Each example includes the full configuration file, a walkthrough of each
section, and sample output.

### [Monitor system metrics](/telegraf/v1/examples/monitor-system-metrics/)

Use Telegraf to collect CPU, memory, disk, and network metrics from a host and write them to InfluxDB 3.

### [Monitor Docker containers](/telegraf/v1/examples/monitor-docker/)

Use Telegraf to collect container CPU, memory, network, and state metrics from the Docker daemon and write them to InfluxDB 3.

### [Collect JSON data from an HTTP API](/telegraf/v1/examples/collect-json-http-api/)

Use the Telegraf HTTP input plugin and the json\_v2 parser to collect live JSON data from a REST API, using New York City’s Citi Bike station data as the example.

### [Parse CSV files from a directory](/telegraf/v1/examples/parse-csv-files/)

Use the Telegraf directory\_monitor input plugin and the CSV parser to ingest CSV files dropped into a directory and write the data to InfluxDB 3.

### [Parse log files](/telegraf/v1/examples/parse-log-files/)

Use the Telegraf tail input plugin and grok patterns to parse web server access logs into structured metrics and write them to InfluxDB 3.

### [Collect metrics from Kafka](/telegraf/v1/examples/collect-kafka/)

Use the Telegraf kafka\_consumer input plugin to consume JSON messages from Kafka topics, parse them into metrics, and write them to InfluxDB 3 with delivery tracking.

### [Collect data from MQTT](/telegraf/v1/examples/collect-mqtt/)

Use the Telegraf mqtt\_consumer input plugin to subscribe to MQTT topics, extract tags from topic paths, parse payloads, and write the data to InfluxDB 3.

### [Collect industrial data from OPC UA](/telegraf/v1/examples/collect-opcua/)

Use the Telegraf opcua input plugin to read values from an OPC UA server, such as a PLC or SCADA gateway, and write them to InfluxDB 3. Covers browse-based node discovery (Telegraf 1.39+) and explicit node configuration.

### [Monitor SNMP devices](/telegraf/v1/examples/monitor-snmp-devices/)

Use the Telegraf snmp input plugin to poll network devices for system and interface metrics and write them to InfluxDB 3.

### [Scrape Prometheus endpoints](/telegraf/v1/examples/scrape-prometheus/)

Use the Telegraf prometheus input plugin to scrape Prometheus metrics endpoints and write the metrics to InfluxDB 3.

### [Downsample metrics before writing](/telegraf/v1/examples/downsample-metrics/)

Use Telegraf aggregator plugins to write raw metrics to one InfluxDB 3 database and five-minute statistical summaries to another.

### [Route metrics to different outputs](/telegraf/v1/examples/route-metrics/)

Use Telegraf metric filtering to send different metrics from one pipeline to different InfluxDB 3 databases and other destinations.
