Files
everything-is-suitable/test-monitoring/prometheus/prometheus.yml
T
张翔 08ea5fbe98 feat(admin): 添加用户管理相关文件
添加用户管理视图、API和状态管理文件
2026-03-28 14:37:29 +08:00

64 lines
1.5 KiB
YAML

global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
monitor: 'test-environment'
scrape_configs:
- job_name: 'test-api-gateway'
metrics_path: '/actuator/prometheus'
static_configs:
- targets: ['test-api-gateway:8080']
labels:
service: 'api-gateway'
application: 'everything-is-suitable-api'
environment: 'test'
scrape_interval: 15s
scrape_timeout: 10s
- job_name: 'test-admin-backend'
metrics_path: '/actuator/prometheus'
static_configs:
- targets: ['test-admin-backend:8081']
labels:
service: 'admin-backend'
application: 'everything-is-suitable-admin'
environment: 'test'
scrape_interval: 15s
scrape_timeout: 10s
- job_name: 'test-postgres'
static_configs:
- targets: ['test-postgres:5432']
labels:
service: 'postgres'
environment: 'test'
scrape_interval: 30s
scrape_timeout: 10s
- job_name: 'test-redis'
static_configs:
- targets: ['test-redis:6379']
labels:
service: 'redis'
environment: 'test'
scrape_interval: 30s
scrape_timeout: 10s
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
labels:
service: 'prometheus'
environment: 'test'
scrape_interval: 30s
scrape_timeout: 10s
alerting:
alertmanagers:
- static_configs:
- targets: []
rule_files:
- 'alerting_rules.yml'