refactor: clean up project structure
- Remove old review reports (keep latest only) - Move docs/ to deploy/docs-backup/ - Move performance-testing/ to deploy/ - Clean up test output files - Organize root directory
This commit is contained in:
50
deploy/monitoring/.env.example
Normal file
50
deploy/monitoring/.env.example
Normal file
@@ -0,0 +1,50 @@
|
||||
# =============================================================================
|
||||
# Sub2API 监控栈环境变量配置
|
||||
# =============================================================================
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Grafana 配置
|
||||
# -----------------------------------------------------------------------------
|
||||
GRAFANA_ADMIN_USER=admin
|
||||
GRAFANA_ADMIN_PASSWORD=changeme
|
||||
GRAFANA_ROOT_URL=http://localhost:3000
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# 告警通知配置
|
||||
# -----------------------------------------------------------------------------
|
||||
# Slack Webhook URL (用于告警通知)
|
||||
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK
|
||||
|
||||
# PagerDuty Webhook URL (用于 Critical 告警)
|
||||
PAGERDUTY_WEBHOOK_URL=https://events.pagerduty.com/integration/YOUR/KEY/enqueue
|
||||
|
||||
# SMTP 配置 (用于邮件告警)
|
||||
SMTP_HOST=smtp.gmail.com
|
||||
SMTP_PORT=587
|
||||
SMTP_USER=your-email@gmail.com
|
||||
SMTP_PASSWORD=your-app-password
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# 数据保留配置
|
||||
# -----------------------------------------------------------------------------
|
||||
# Prometheus 数据保留时间
|
||||
PROMETHEUS_RETENTION_TIME=30d
|
||||
PROMETHEUS_RETENTION_SIZE=50GB
|
||||
|
||||
# Loki 数据保留时间
|
||||
LOKI_RETENTION_TIME=168h
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# 外部服务配置
|
||||
# -----------------------------------------------------------------------------
|
||||
# Sub2API 服务地址 (用于抓取指标)
|
||||
SUB2API_HOST=sub2api
|
||||
SUB2API_PORT=8080
|
||||
|
||||
# PostgreSQL Exporter 配置
|
||||
POSTGRES_EXPORTER_HOST=postgres-exporter
|
||||
POSTGRES_EXPORTER_PORT=9187
|
||||
|
||||
# Redis Exporter 配置
|
||||
REDIS_EXPORTER_HOST=redis-exporter
|
||||
REDIS_EXPORTER_PORT=9121
|
||||
Reference in New Issue
Block a user