mirror of
https://github.com/DullJZ/s3-balance.git
synced 2026-09-06 00:06:38 +08:00
deploy
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# Prometheus 配置 - 抓取 S3 Balance 指标
|
||||
global:
|
||||
scrape_interval: 15s # 抓取间隔
|
||||
evaluation_interval: 15s # 评估间隔
|
||||
|
||||
# 告警规则文件
|
||||
rule_files:
|
||||
- "s3_balance_alerts.yml"
|
||||
|
||||
# 抓取配置
|
||||
scrape_configs:
|
||||
# S3 Balance 服务指标
|
||||
- job_name: 's3-balance'
|
||||
static_configs:
|
||||
- targets: ['s3-balance:8080']
|
||||
metrics_path: '/metrics'
|
||||
scrape_interval: 15s
|
||||
scrape_timeout: 10s
|
||||
|
||||
# Node Exporter (系统指标)
|
||||
- job_name: 'node-exporter'
|
||||
static_configs:
|
||||
- targets: ['node-exporter:9100']
|
||||
scrape_interval: 15s
|
||||
|
||||
# 告警配置
|
||||
alerting:
|
||||
alertmanagers:
|
||||
- static_configs:
|
||||
- targets: [] # 可以添加 AlertManager 地址
|
||||
Reference in New Issue
Block a user