Telegraf OSS notes (researched 2026-11-24)
Items marked [unverified] were not confirmed against the docs.
Version and packaging
- Latest stable: v1.40.4 (2026-11-23). Minor release about every 3 months, patch releases about every 3 weeks.
- Debian apt repo (one
stablesuite for Debian 12 and 13; Debian 13 is not explicitly listed, so test it):- Key: https://repos.influxdata.com/influxdata-archive.key
- Fingerprint:
24C975CBA61A024EE1B631787C3D57159FC2F927. InfluxData rotates keys, so pin it and re-verify in provisioning. - Repo line:
deb [signed-by=/etc/apt/keyrings/influxdata-archive.gpg] https://repos.influxdata.com/debian stable main
Gatherer to aggregator transport
| Transport | Notes |
|---|---|
outputs.influxdb_v2 → inputs.influxdb_v2_listener | Default choice. Native line protocol, TLS/mTLS, token auth, gzip, and max_undelivered_metrics returns 429 for backpressure. |
outputs.http → inputs.http_listener_v2 | Use when custom headers or a proxy are needed. non_retryable_statuscodes drops poison batches. |
socket_writer → socket_listener | TCP/UDP/unix. Weak acknowledgement semantics; UDP is lossy. |
| Kafka / NATS JetStream / MQTT | Durable decoupling at the cost of running another service. |
- Buffering is per output via
metric_buffer_limit. When the buffer is full, the oldest metrics are overwritten. [agent] buffer_strategy = "disk"(withbuffer_directory) is agent-wide and still experimental; there were disk-buffer fixes in 1.39.2, 1.40.3 and 1.40.4. Run an outage and restart test before relying on it.
Aggregator fan-out
- Each
[[outputs.*]]block has its own buffer and flush, so a slow TSDB doesn't block the others. - Route with
namepass/namedrop/tagpass/tagdrop. Multipletagpasskeys are OR-ed, andtagpassmust be the last thing in a plugin block. - Prometheus remote write:
outputs.http+data_format = "prometheusremotewrite", with headersContent-Type: application/x-protobuf,Content-Encoding: snappyandX-Prometheus-Remote-Write-Version: 0.1.0. String fields are dropped. - VictoriaMetrics accepts both remote write (
/api/v1/write) and influx line protocol.
inputs.execd
- Runs ONE long-lived child process, and Telegraf reads its stdout.
commandis an argv array. signal:none(default): the program emits on its own timer.STDIN: Telegraf sends a newline each interval, and the program must loop reading stdin.SIGHUP/SIGUSR1/SIGUSR2are also available.
- When the process exits it is restarted after
restart_delay(10s). A one-shot script therefore turns into roughly 10s polling plus log noise. buffer_sizeis 64KiB (the maximum line length).stop_on_erroris false by default.- The child must flush stdout every batch.
- stderr lines are logged at ERROR unless prefixed
E!/W!/I!/D!/T!. --test/--oncemay produce no output for execd.
PVE-relevant inputs
inputs.proxmox:- Needs an API token, with PVEAuditor on
/granted to both the user and the token (privilege separation). - Reports guest metrics only. On a cluster any node returns cluster-wide guests, so run it on one node. [unverified]
- Needs an API token, with PVEAuditor on
inputs.zfs: reads/proc/spl/kstat/zfs. EnablepoolMetricsanddatasetMetricsanduseNativeTypes. Pool health needs exec or execd.inputs.smart: root is needed. Useuse_sudoplus sudoers for smartctl and nvme, andnocheck = "standby".inputs.ipmi_sensor: needs/dev/ipmi*(udev rule or sudo), or remote BMC polling viaservers.inputs.ceph: needs admin socket read access.gather_cluster_statsalso needs a keyring andceph.conf.sensors(lm-sensors),cpu,mem,disk,diskio,net,systemandkernelneed no special privileges. Fordisk, setignore_fs.