Auto-sync: 2026-04-17 08:37

This commit is contained in:
2026-04-17 08:38:12 +08:00
parent 6caa1c2f47
commit a0a48bd334
247 changed files with 6577 additions and 3061 deletions

View File

@@ -0,0 +1,40 @@
---
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 ← [[监控可观测性]]