feat: 接入 Prometheus 监控(放行 /actuator/prometheus + 指标暴露 + compose 编排)

This commit is contained in:
Zhou Weidong authored and trae-solo-agent committed 2026-10-21 06:28:11 +08:00
1 parent 42dd68f266
commit 32710c2e06
5 files changed
+70 -2

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
# Author: fruit.com.cn
# Prometheus 抓取配置:抓取后端双服务的 actuator 指标(服务名走 compose 网络)
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
- job_name: "fruitshorts-app-api"
metrics_path: "/actuator/prometheus"
static_configs:
- targets: ["app-api:8081"]
- job_name: "fruitshorts-admin-api"
metrics_path: "/actuator/prometheus"
static_configs:
- targets: ["admin-api:8080"]