17 lines
467 B
YAML
17 lines
467 B
YAML
# 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"]
|