25 lines
640 B
YAML
25 lines
640 B
YAML
|
|
# Prometheus 监控配置 — 天工智能体平台
|
||
|
|
# 启动: docker run -d --name prometheus -p 9090:9090 -v $PWD/deploy/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus
|
||
|
|
|
||
|
|
global:
|
||
|
|
scrape_interval: 15s
|
||
|
|
evaluation_interval: 15s
|
||
|
|
|
||
|
|
scrape_configs:
|
||
|
|
- job_name: "aiagent-backend"
|
||
|
|
metrics_path: /metrics
|
||
|
|
static_configs:
|
||
|
|
- targets: ["backend:8037"]
|
||
|
|
labels:
|
||
|
|
service: "fastapi"
|
||
|
|
|
||
|
|
- job_name: "aiagent-celery"
|
||
|
|
static_configs:
|
||
|
|
- targets: ["celery-exporter:9808"]
|
||
|
|
labels:
|
||
|
|
service: "celery"
|
||
|
|
|
||
|
|
- job_name: "prometheus"
|
||
|
|
static_configs:
|
||
|
|
- targets: ["localhost:9090"]
|