# Author: fruit.com.cn # Prometheus 抓取配置:抓取后端双服务的 actuator 指标 global: scrape_interval: 15s evaluation_interval: 15s scrape_configs: - job_name: "fruitshorts-app-api" metrics_path: "/actuator/prometheus" static_configs: - targets: ["host.docker.internal:8081"] - job_name: "fruitshorts-admin-api" metrics_path: "/actuator/prometheus" static_configs: - targets: ["host.docker.internal:8080"]