Files
nexus/wiki/entities/Prometheus.md
weishen 5789476c23 Batch ingest: Multi-Agent Team / DevOps Maturity / 一语点醒梦中人 / NodeWarden
Sources:
- Agent-usecases-multi-Agent-Team.md
- DevOps-Maturity-Model-From-Traditional-IT-to-Advanced-DevOps.md
- AI-一语点醒梦中人.md
- Home-Office-NodeWarden-把-Bitwarden-搬上-Cloudflare-Workers彻底告别服务器.md

Entities: Trebuh, Cloudflare
Concepts: DevOps成熟度模型, 共享内存模式, 空性智慧, 绝处逢生
2026-04-15 18:05:17 +08:00

35 lines
1.4 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
type: entity
tags: [监控, 可观测性, 开源, 时序数据库]
sources: ["https://prometheus.io"]
last_updated: 2026-04-15
---
## 基本信息
- **类型**:开源监控告警系统和时序数据库
- **官网**https://prometheus.io
- **公司**CNCF 毕业项目
## 核心机制
- **拉模式Pull-based**Prometheus 主动从各 exporter 拉取指标,而非被动接收
- **scrape_configs**:配置抓取目标和抓取间隔,默认 15s
- **PromQL**:查询语言,支持聚合、过滤、函数计算时序数据
- **告警规则**:基于 PromQL 表达式持续评估,达到阈值触发告警
- **Alertmanager 集成**:告警触发后推送到 Alertmanager 进行分组/抑制/路由
## 关键 Exporters
- [[node_exporter]]主机层指标CPU/内存/磁盘/网络)
- [[cAdvisor]]:容器层指标(容器运行状态/资源限制/重启次数)
- [[blackbox_exporter]]黑盒探测HTTP/TCP/DNS/ICMP 可用性)
## 在 Wiki 中的角色
- [[家庭监控方案 Prometheus + Grafana + Node Exporter + cAdvisor + Blackbox]] 核心采集和告警引擎
- [[Grafana]] 的主要数据源
- [[VictoriaMetrics]] 可作为 Prometheus remote_write 后端实现长期存储
## 存储限制
- 本地 TSDB 会持续磁盘增长
- 建议配置 remote_write 到 [[VictoriaMetrics]] 等远端存储实现长期保留
- 启动参数 --storage.tsdb.path 指定存储路径