1.6 KiB
1.6 KiB
title, type, tags, date
| title | type | tags | date | ||||
|---|---|---|---|---|---|---|---|
| 家庭监控方案Prometheus+Grafana | source |
|
2025-11-11 |
Source File
Summary
- 核心主题:家庭环境(NAS+Ubuntu)部署完整监控栈
- 问题域:主机/容器/服务/HTTP可用性监控
- 方法/机制:Docker Compose编排,Prometheus采集+Grafana可视化+Alertmanager告警
- 结论/价值:开箱即用的家庭监控方案,覆盖主机/容器/网络探测
Key Claims
- 组件:Prometheus + Grafana + Alertmanager + node_exporter + cAdvisor + blackbox_exporter
- 访问端口:Prometheus 9090, Grafana 3000, Alertmanager 9093, cAdvisor 8080, node_exporter 9100, blackbox 9115
- 关键监控项:CPU>85%告警、磁盘<10%告警、内存<15%告警、HTTP探测失败、TLS证书<14天告警
- Grafana导入:Node Exporter Dashboard 1860, cAdvisor 14282, Blackbox 7587
- compose命令:docker compose up -d
Key Concepts
- Prometheus监控:时序数据采集+告警规则
- Grafana仪表盘:多数据源可视化
- blackbox_exporter:HTTP/TCP/ICMP探测
Key Entities
- Prometheus:监控时序数据库
- Grafana:可视化平台
- node_exporter:主机指标采集
- cAdvisor:容器指标采集
- blackbox_exporter:网络探测
Connections
- 家庭监控方案 ← implements ← Prometheus监控
- Prometheus监控 ← uses ← node_exporter, cAdvisor, blackbox_exporter
Contradictions
- 无冲突