# 天工智能体平台 — Prometheus 配置 global: scrape_interval: 15s evaluation_interval: 15s external_labels: cluster: tiangong environment: ${ENVIRONMENT:-prod} # 告警规则文件 rule_files: - /etc/prometheus/alert_rules.yml scrape_configs: # ─── FastAPI 后端 ─── - job_name: backend metrics_path: /metrics static_configs: - targets: - backend:8037 labels: service: fastapi component: api # ─── Prometheus 自身监控 ─── - job_name: prometheus static_configs: - targets: - localhost:9090