Pcornel
Browse topics
Options
Recent
Favorites
Observability · Technical reference

Exporters

Direct answer

Exporters translate metrics from systems that don't expose Prometheus format — node_exporter, blackbox_exporter, snmp_exporter, mysqld_exporter, windows_exporter.

When to use this

Use it to monitor third-party software, hosts and devices.

First 30 seconds

1. Exporter responds: curl -s localhost:9100/metrics | head.

2. Target up in Prometheus.

3. Exporter success metric (mysql_up, probe_success).

4. Credentials least privilege.

5. Version current.

Operational verification

system → exporter → /metrics → Prometheus scrape

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
OpenTelemetry / Prometheus / Grafana / common metrics-log-trace pipelines
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformOpenTelemetry / Prometheus / Grafana / common metrics-log-trace pipelines
Scope / prerequisiteUse it to monitor third-party software, hosts and devices.
What next?2 suggested next steps
Evidence0
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 How to verify Verify boundary

Confirm key metrics appear and change over time. Restrict access to exporter ports with a firewall.

Step 2 Common failures Narrow the fault

Exporters scraped too often load the source system. Running exporters with admin credentials is a security risk. A broken source connection may still answer /metrics with only exporter self-metrics.

Key points

Run exporters close to the system, secure their endpoints, and watch exporter-specific success metrics (e.g. probe_success, mysql_up).

Key checks
  • curl -s localhost:9100/metrics | head — first check for this topic
  • curl -s localhost:9090/-/ready — Prometheus ready
  • curl -s 'localhost:9090/api/v1/query?query=up' — scrape targets up/down
  • promtool check config prometheus.yml — config valid
ReferenceWhat it is1 section · depth on demand

How it works

Exporters read the source on each scrape (or cache) and expose metrics. The SNMP exporter needs a generated module that maps MIB objects to metrics. Blackbox exporter is scraped with a target parameter.

ReferenceImportant terms & boundaries3 sections · depth on demand

Common exporters

ExporterMonitorsDefault port
node_exporterLinux hosts9100
windows_exporterWindows hosts9182
blackbox_exporterHTTP/TCP/ICMP/DNS probes9115
snmp_exporterNetwork devices9116
postgres_exporter / mysqld_exporterDatabases9187 / 9104
kube-state-metricsKubernetes objects8080

Restrict exporter ports with firewalls; many expose sensitive details. Check a target's raw output with curl http://host:9100/metrics.

In depth

Where the metric comes from

ApproachWhen
Direct instrumentation (client library in your code)Your own applications
Exporter next to the systemSoftware you cannot change: databases, proxies, hardware
Built-in /metrics endpointMany modern tools (Kubernetes components, Traefik, etcd, CoreDNS)
PushgatewayOnly for short batch jobs that end before a scrape

Running exporters well

ConcernPractice
PlacementOne exporter per instance, next to it (sidecar or same host); the target label then identifies the instance
CredentialsRead-only monitoring account (pg_monitor, MySQL PROCESS, REPLICATION CLIENT, SELECT on performance_schema)
AccessFirewall the exporter port, or require TLS/basic auth with the exporter-toolkit --web.config.file
Scrape costSome collectors run expensive queries; disable what you do not use and keep the interval sensible
HealthMost exporters expose an …_up metric for the backend (for example pg_up, mysql_up) — alert on it separately from up

up == 1 only says the exporter answered; pg_up == 0 says the exporter is fine but cannot reach the database.

The multi-target pattern

The SNMP and blackbox exporters probe other targets. Prometheus passes the real target as a parameter and relabels the address to the exporter:

- job_name: snmp
  static_configs: [{ targets: [sw1.example.net, sw2.example.net] }]
  metrics_path: /snmp
  params: { module: [if_mib], auth: [public_v3] }
  relabel_configs:
  - { source_labels: [__address__], target_label: __param_target }
  - { source_labels: [__param_target], target_label: instance }
  - { target_label: __address__, replacement: snmp-exporter:9116 }

Custom metrics without a new exporter

node_exporter's textfile collector reads *.prom files from a directory: a cron job can write backup_last_success_timestamp_seconds 1795770843 and Prometheus scrapes it with the host metrics. Write to a temp file and rename it, so a half-written file is never read.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Common mistakes

  • Exporters exposing data without authentication.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
exportersprometheus exporternode_exporter blackbox_exporter
Confirmation

Confirm action

Continue?