chore: 保存笔记本本地未提交改动(源码+新增文件,排除构建缓存/大文件)
This commit is contained in:
28
prometheus.yml
Normal file
28
prometheus.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
# 天工智能体平台 — 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
|
||||
Reference in New Issue
Block a user