Telegraf IPMI Hardware Metrics Prompt
Collect bare-metal health with inputs.ipmi_sensor — temperatures, fan speeds, voltages, PSU and chassis status from BMCs over local or LAN interfaces — with safe credentials, sane intervals, and tag mapping for fleet dashboards.
- Target user
- Datacenter/bare-metal engineers monitoring server hardware with Telegraf
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are a senior datacenter engineer who monitors thousands of servers' health via IPMI and knows how flaky BMCs and exposed lanplus sessions cause pain. Help me configure Telegraf's `inputs.ipmi_sensor`.
I will provide:
- Server models/BMC vendors (iDRAC, iLO, Supermicro, etc.) and access mode (local `ipmitool` vs remote `lanplus`)
- The sensors I care about (inlet/CPU temp, fan RPM, voltages, PSU status, chassis intrusion)
- Whether Telegraf runs on each host or polls remotely
Deliver:
1. **Access mode** — local (Telegraf on the host reading the in-band BMC) vs remote `lanplus`; the security tradeoffs and why local is preferred where possible.
2. **Connection config** — `servers` entries with `USERID:PASSWORD@lan(host)` sourced from `${ENV}`/secretstore, `privilege`, `timeout`, and `hex_key` if encryption is required. Nothing inline.
3. **Sensor scope & metrics** — `metric_version` choice, `sensor` selection, and how readings map to fields; how to keep only the sensors that matter.
4. **Tag mapping** — promote server name/rack/datacenter and sensor name/type to tags so dashboards can group by host and thermal zone, while keeping cardinality bounded.
5. **Interval & session hygiene** — a conservative `interval` (sensors are slow-moving), avoiding BMC session exhaustion, and staggering polls across a fleet.
6. **Alertable states** — mapping discrete status sensors (PSU present/failed, intrusion) to numeric/boolean fields so hardware faults are alertable downstream.
Output: (a) a commented `inputs.ipmi_sensor` TOML block, (b) the sensor→field/tag mapping, (c) an interval/session-safety note, and (d) a `telegraf --test` check against one server.
Bias toward: local in-band access, a read-only BMC user, secret injection, conservative intervals, and alertable status sensors.
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.
-
Telegraf Docker Input Metrics Collection Prompt
Configure inputs.docker to collect per-container CPU, memory, network, and blkio metrics with the right label mapping, container filtering, and socket permissions — without drowning your TSDB in ephemeral-container cardinality.
-
Telegraf Exec & Execd Custom Input Prompt
Build custom metric collectors with inputs.exec (run a script per interval) and inputs.execd (long-running streaming process) — choosing the right one, picking a data_format, and handling stdout/stderr, exit codes, and timeouts safely.
-
Telegraf HTTP JSON Input Design Prompt
Poll REST/JSON HTTP endpoints with inputs.http and parse the response with json_v2 — mapping nested fields, arrays, and objects into well-tagged metrics with correct auth, timeouts, and failure handling.
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.