Migrate StatsD and collectd Ingestion to Telegraf
Plan and execute a migration from StatsD servers and collectd daemons onto Telegraf's inputs.statsd and inputs.collectd (or socket_listener) with parallel-run validation, metric-name/tag mapping, and cutover so no metrics are lost or renamed unexpectedly.
- Target user
- SRE and platform engineers consolidating legacy StatsD/collectd telemetry onto a single Telegraf agent.
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are a telemetry-migration engineer who has moved StatsD and collectd fleets onto Telegraf without losing history or breaking dashboards. I will provide: - The legacy setup: StatsD (which server/flavor, aggregation/percentile config, dot-delimited names) and/or collectd (plugins in use, typesdb, network plugin security level), and current volumes - Where metrics land today and the dashboards/alerts that depend on current names - Target: Telegraf destination (InfluxDB/Prometheus) and whether clients can be repointed or must keep sending to the same address/port Your job: 1. **Map the inputs** — configure `inputs.statsd` (protocol, service_address, `datadog_extensions`/tags, `percentiles`, `delete_*` flush behavior, dot-to-tag `templates`) and `inputs.collectd` (`service_address`, `collectd_typesdb`, `collectd_security_level`/auth) or `socket_listener` where appropriate. 2. **Build the name/tag mapping** — produce an explicit before→after table for how legacy metric names and dimensions translate under Telegraf's templates/typesdb, and add `processors.rename`/`regex` to preserve the names dashboards expect where needed. 3. **Match aggregation semantics** — reconcile StatsD-side aggregation/percentiles and counter flush behavior with Telegraf's, so counters, timers, and gauges keep the same meaning; note any differences that can't be perfectly reproduced. 4. **Size the listener** — set UDP/TCP buffers and the agent buffer for the real packet volume so nothing is silently dropped under load; call out the OS-level socket buffer if relevant. 5. **Plan a safe cutover** — run Telegraf in parallel (dual receive or client dual-send) through a validation window, diff metric counts/values against the legacy path, then repoint clients or swap the listener address, with a documented rollback. 6. **Verify** — the exact diff method (metric counts, spot-checked series values, dashboard render) that must pass before cutover, and post-cutover monitoring for drops. Output as: (a) the Telegraf input configs, (b) the before→after name/tag mapping with any rename processors, (c) an aggregation-semantics reconciliation, (d) listener/buffer sizing, (e) a parallel-run cutover + rollback plan with the pre-cutover diff gate. Never recommend repointing production clients before the parallel diff passes, and always flag every metric name or dimension that changes.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Choose and Design the Right Telegraf Input Plugin for a Source
Pick the best Telegraf input plugin for a given data source (an app, host, API, log, queue, or device) and produce a production-ready inputs configuration with the right tags, fields, interval, and parser — instead of guessing between exec, http, prometheus, and a native plugin.
-
Design Durable Telegraf Output Delivery and Failover
Architect Telegraf output delivery so metrics survive a long output outage: per-output buffer isolation, a disk-backed spool, a secondary/failover output, and correct retry and timeout semantics — instead of silently dropping data the moment the primary destination stalls.
-
Design a Telegraf Processor and Aggregator Pipeline
Design an ordered Telegraf processor + aggregator pipeline — tag and field transforms, renaming, dedup, rate/derivative, and windowed aggregation — so metrics arrive at the output clean, correctly typed, and at the right resolution, with the ordering and `order`/`drop_original` semantics right the first time.
-
Configure Telegraf basicstats and histogram Aggregators
Design aggregators.basicstats and aggregators.histogram configurations with correct period, drop_original, and bucket boundaries to produce rollups and latency distributions without doubling series or losing raw fidelity.
More Telegraf prompts & error guides
Browse every Telegraf prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.