用途:配置 Prometheus,实现基础设施与应用指标的采集、存储、告警和监控。适用场景包括搭建 Prometheus 监控、配置指标抓取、创建录制规则、设计告警规则以及实现服务发现。
主要能力:提供安装示例(Helm 安装 kube-prometheus-stack,以及 Docker Compose 运行 prom/prometheus)、全局配置与抓取配置模板、静态目标与文件/ Kubernetes 服务发现配置、录制规则与告警规则示例,并给出最佳实践与故障排查方法。
使用方式:安装可执行 helm repo add prometheus-community https://prometheus-community.github.io/helm-charts 后安装相关 chart,或使用 Docker Compose 挂载 prometheus.yml。配置核心为 prometheus.yml 中的 global、alerting、rule_files、scrape_configs 等段落。校验命令包括 promtool check config prometheus.yml、promtool check rules 以及 promtool query instant。
限制:资料未提供具体收费、平台支持范围、性能指标或效果数据;参考文件(如 assets/prometheus.yml.template、references/*.md、scripts/validate-prometheus.sh)仅列出路径,内容暂未提供。