curl -s localhost:9100/metrics | head -20

Category: Monitoring & Observability

curl -s localhost:9100/metrics | head -20

Fetch the first metrics from the node exporter

Pulls the OpenMetrics text exposition from the node exporter's /metrics endpoint, which listens on port 9100 by default. Every line is one metric: name, labels in braces, and the current value. The head -20 shows the header, HELP and TYPE lines, and the first metrics.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.