Metric 之 Prometheus [9] #
- 非分布式, 联邦
- pushgataway
- 服务发现
- 拉模式
业务场景 #
- 业务指标
- metric
多云, 多地域监控 #
在远端云上部署Prometheus agent
Prometheus 存储层的演进 [7] #
- 1st Generation: Prototype
- key
- metric name
- labels
- timestamp
- value
- key
- 2nd Generation: Prometheus V1
- 压缩
- Timestamp Compression: Double Delta
- Value Compression
- Chunk Encoding
1KB
- 压缩
- 3rd Generation: Prometheus V2
Prometheus服务发现机制[10][11] #
kubernetes_sd_configs: #基于 Kubernetes API实现的服务发现,让prometheus动态发现kubernetes中被监控的目标
static_configs: #静态服务发现,基于prometheus配置文件指定的监控目标
dns_sd_configs: #DNS服务发现监控目标
consul_sd_configs: #Consul服务发现,基于consul服务动态发现监控目标
file_sd_configs: #基于指定的文件实现服务发现,基于指定的文件发现监控目标
参考: #
- 第十八期: 玩转云原生容器场景的Prometheus监控 腾讯云 云原生正发声 #todo 重看一遍
存储层 #
Metric #
- 《48 | Prometheus、Metrics Server与Kubernetes监控体系》 深入剖析Kubernetes 张磊
- 《第七模块 :微服务监控告警Prometheus架构和实践 119.监控模式分类》 微服务架构实战160讲 杨波 partial
服务发现机制 #
- kubernetes架构师课程 159 V ***
- prometheus服务发现