Files
nexus/wiki/concepts/node_exporter.md
2026-04-17 08:38:12 +08:00

40 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "node_exporter"
type: concept
tags: [exporter, prometheus, monitoring, linux]
sources: [家庭监控方案-prometheus-grafana-node-exporter-cadvisor-blackbox]
last_updated: 2026-04-16
---
## Definition
node_exporter 是 Prometheus 官方的主机指标采集器,采集 Linux/Unix 主机的 CPU、内存、磁盘、网络、文件系统等系统指标。
## Key Metrics
- **CPU**:使用率、上下文切换、软中断
- **内存**:总量、可用、已用、缓存
- **磁盘**使用率、IO、inode
- **网络**:流量、丢包、错误
- **文件系统**:挂载点、容量、使用率
## Docker 部署
```yaml
node_exporter:
image: prom/node-exporter:latest
network_mode: "host"
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
```
## Common Alert Rules
- CPU 使用率 > 85%
- 磁盘空间 < 10%
- 可用内存 < 15%
## Default Port
- 9100
## Connections
- [[node_exporter]] ← scrapes_by ← [[Prometheus]]
- [[node_exporter]] ← core_exporter ← [[监控可观测性]]