Skip to content
DevOps AI ToolKit
Newsletter
All prompts
AI for Telegraf Difficulty: Intermediate ClaudeChatGPTCursor

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

More Telegraf prompts & error guides

Browse every Telegraf prompt and troubleshooting guide in one place.

Free download · 368-page PDF

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.