用途:设计并实现覆盖指标、日志、追踪与可靠性工程的可观测性系统,适用于搭建 Prometheus 监控、创建 Grafana 仪表盘、实现分布式追踪(Jaeger、Tempo)、定义 SLIs/SLOs 与错误预算、配置告警以及调试微服务延迟。
主要能力:围绕可观测性三大支柱(指标、日志、追踪)展开,指标对应 Prometheus、日志对应 Loki/ELK、追踪对应 Jaeger/Tempo。方法上采用 RED(Rate、Errors、Duration)分析服务,USE(Utilization、Saturation、Errors)分析资源。提供 Prometheus 配置、记录规则、Grafana 常用查询(请求速率、错误率、P95 延迟)、OpenTelemetry 追踪接入、Jaeger 部署、SLO 定义与错误预算、燃烧率告警,以及多窗口告警和分级严重程度策略。
使用方式:资料给出 Kubernetes 下用 Helm 安装的方式,例如 helm repo add prometheus-community https://prometheus-community.github.io/helm-charts,随后 helm install prometheus prometheus-community/kube-prometheus-stack --namespace monitoring --create-namespace --set prometheus.prometheusSpec.retention=30d。追踪侧可用 OpenTelemetry SDK 注册导出器与插桩。
限制与注意事项:资料提到大型监控栈代码量大(1000+ 行),建议每个响应只生成一个组件,按指标、仪表盘、告警、追踪、日志的顺序推进;生产环境追踪建议按 1-10% 采样;SLO 不宜设为 100%。其他收费、平台支持范围等信息暂未提供。