Auto-sync: 2026-04-16 17:30
This commit is contained in:
@@ -1,34 +1,22 @@
|
||||
---
|
||||
title: Prometheus
|
||||
title: "Prometheus"
|
||||
type: entity
|
||||
tags: [监控, 可观测性, 开源, 时序数据库]
|
||||
sources: ["https://prometheus.io"]
|
||||
last_updated: 2026-04-15
|
||||
tags: [monitoring, observability, CNCF]
|
||||
sources: [cloud-devop-maturity-guideline, DevOps-Culture-and-Transformation]
|
||||
last_updated: 2026-04-16
|
||||
---
|
||||
|
||||
## 基本信息
|
||||
- **类型**:开源监控告警系统和时序数据库
|
||||
- **官网**:https://prometheus.io
|
||||
- **公司**:CNCF 毕业项目
|
||||
## Summary
|
||||
Prometheus 是 CNCF 开发的开源监控系统,提供时间序列数据采集、存储和查询能力,常与 Grafana 搭配使用。
|
||||
|
||||
## 核心机制
|
||||
- **拉模式(Pull-based)**:Prometheus 主动从各 exporter 拉取指标,而非被动接收
|
||||
- **scrape_configs**:配置抓取目标和抓取间隔,默认 15s
|
||||
- **PromQL**:查询语言,支持聚合、过滤、函数计算时序数据
|
||||
- **告警规则**:基于 PromQL 表达式持续评估,达到阈值触发告警
|
||||
- **Alertmanager 集成**:告警触发后推送到 Alertmanager 进行分组/抑制/路由
|
||||
## Definition
|
||||
时间序列监控系统,用于持续监控应用和基础设施指标。
|
||||
|
||||
## 关键 Exporters
|
||||
- [[node_exporter]]:主机层指标(CPU/内存/磁盘/网络)
|
||||
- [[cAdvisor]]:容器层指标(容器运行状态/资源限制/重启次数)
|
||||
- [[blackbox_exporter]]:黑盒探测(HTTP/TCP/DNS/ICMP 可用性)
|
||||
## Key Attributes
|
||||
- **类型**:监控系统
|
||||
- **开发商**:CNCF(云原生计算基金会)
|
||||
- **许可证**:开源(Apache License 2.0)
|
||||
|
||||
## 在 Wiki 中的角色
|
||||
- [[家庭监控方案 Prometheus + Grafana + Node Exporter + cAdvisor + Blackbox]] 核心采集和告警引擎
|
||||
- [[Grafana]] 的主要数据源
|
||||
- [[VictoriaMetrics]] 可作为 Prometheus remote_write 后端实现长期存储
|
||||
|
||||
## 存储限制
|
||||
- 本地 TSDB 会持续磁盘增长
|
||||
- 建议配置 remote_write 到 [[VictoriaMetrics]] 等远端存储实现长期保留
|
||||
- 启动参数 --storage.tsdb.path 指定存储路径
|
||||
## Connections
|
||||
- [[监控可观测性]] ← 核心工具 ← [[Prometheus]]
|
||||
- [[Prometheus]] ← 搭配 ← [[Grafana]]
|
||||
|
||||
Reference in New Issue
Block a user