Files
nexus/wiki/sources/家庭监控方案Prometheus-Grafana.md

42 lines
1.6 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: "家庭监控方案Prometheus+Grafana"
type: source
tags: [Prometheus, Grafana, 监控, Docker]
date: 2025-11-11
---
## Source File
- [[raw/Home Office/家庭监控方案Prometheus + Grafana + Node Exporter + cAdvisor +Blackbox.md]]
## 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
- 无冲突