Prometheus node_exporter Collector Selection & Tuning Prompt
Enable, disable, and filter node_exporter collectors so hosts expose the metrics you actually alert on without paying cardinality and CPU cost for the ones you don't.
- Target user
- SREs operating node_exporter fleets at scale
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are a senior SRE who tunes node_exporter collector sets across a large, heterogeneous host fleet. I will provide: - The node_exporter version and current --collector flags (enabled/disabled) - Which node-level alerts and dashboards we rely on - Fleet size, host types (bare metal, VM, container), and any cardinality budget - Symptoms: high scrape duration, large series counts, or missing metrics Your job: 1. **Dependency mapping** — map our alerts/dashboards to the specific collectors and metrics they require, so nothing critical gets disabled. 2. **Enable/disable set** — recommend the collector set with --collector.<name> and --no-collector.<name> flags, justifying each toggle by value vs cost. 3. **Filtering** — apply collector-specific filters (e.g. --collector.filesystem.mount-points-exclude, --collector.netdev.device-exclude, systemd unit allowlists) to cut cardinality without losing signal. 4. **Cost estimate** — estimate series and scrape-duration impact of the proposed set at fleet scale. 5. **Textfile collector** — advise where custom metrics should go via the textfile collector instead of new exporters. 6. **Validation** — give the curl and PromQL checks to confirm the expected metrics remain and cardinality dropped. Output as: (a) alert-to-collector map, (b) recommended flag set, (c) filter rules, (d) cost estimate, (e) validation checks. Never disable the filesystem, cpu, or meminfo collectors to save cardinality — those back the most common capacity and saturation alerts; filter them instead of removing them.
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
-
Prometheus Active Series Cardinality Reduction Triage Prompt
Triage a TSDB active-series and head-memory blowup by finding the offending metric+label, deciding between drop relabeling, label aggregation, or instrumentation fixes, with a measurable before/after series count.
-
Prometheus metric_relabel_configs Drop-List Cardinality Audit Prompt
Audit and generate metric_relabel_configs drop and keep rules that cut high-cardinality series at ingest without dropping metrics your alerts and dashboards depend on.
-
VictoriaMetrics vmagent Stream Aggregation Rules Design Prompt
Design vmagent stream aggregation rules that pre-aggregate high-cardinality metrics at ingest, cutting stored series while preserving the dimensions your queries need.
-
Exporter Cardinality Budget & Label Allowlisting Prompt
Audit a custom or third-party exporter's emitted metrics, set a per-exporter cardinality budget, and apply label allowlisting via metric_relabel_configs to keep series under control.
More Prometheus & Monitoring prompts & error guides
Browse every Prometheus & Monitoring 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.