game/prometheus/prometheus.yml
2026-04-20 16:07:22 +08:00

34 lines
730 B
YAML
Executable File

global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
# Prometheus 自身监控
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
# Nginx 监控
- job_name: 'nginx'
static_configs:
- targets: ['nginx-exporter:9113']
metrics_path: /metrics
# Redis 监控
- job_name: 'redis'
static_configs:
- targets: ['redis-exporter:9121']
metrics_path: /metrics
# MySQL 监控
- job_name: 'mysql'
static_configs:
- targets: ['mysql-exporter:9104']
metrics_path: /metrics
# Nakama 游戏服务监控 (如果开启了 metrics)
- job_name: 'nakama'
static_configs:
- targets: ['nakama:9100']
metrics_path: /metrics