fix: align deploy health checks with live endpoint
All checks were successful
CD Pipeline / deploy (push) Successful in 1m5s
All checks were successful
CD Pipeline / deploy (push) Successful in 1m5s
This commit is contained in:
@@ -14,8 +14,8 @@ SERVICE=$(echo "$QUERY_STRING" | sed -n 's/.*service=\([^&]*\).*/\1/p')
|
||||
|
||||
# 定義服務健康檢查 URL
|
||||
declare -A HEALTH_URLS=(
|
||||
["momo-uat"]="https://mo.wooo.work/health"
|
||||
["momo-gcp"]="https://momo.wooo.work/health"
|
||||
["momo-live"]="https://mo.wooo.work/health"
|
||||
["momo-prod"]="https://mo.wooo.work/health"
|
||||
["gitlab"]="http://127.0.0.1:8929/"
|
||||
["registry"]="http://127.0.0.1:5002/v2/"
|
||||
["n8n"]="http://127.0.0.1:5678/"
|
||||
|
||||
@@ -27,9 +27,9 @@ check_service() {
|
||||
echo '{"services": {'
|
||||
|
||||
# 核心服務
|
||||
check_service "momo-uat" "https://mo.wooo.work/health"
|
||||
check_service "momo-live" "https://mo.wooo.work/health"
|
||||
echo ","
|
||||
check_service "momo-gcp" "https://momo.wooo.work/health"
|
||||
check_service "momo-prod" "https://mo.wooo.work/health"
|
||||
echo ","
|
||||
|
||||
# 開發工具
|
||||
|
||||
@@ -119,7 +119,7 @@ scrape_configs:
|
||||
module: [http_2xx]
|
||||
static_configs:
|
||||
- targets:
|
||||
- https://momo.wooo.work/health
|
||||
- https://mo.wooo.work/health
|
||||
labels:
|
||||
env: 'prod'
|
||||
probe_type: 'http'
|
||||
@@ -268,24 +268,6 @@ scrape_configs:
|
||||
- target_label: __address__
|
||||
replacement: blackbox-exporter:9115
|
||||
|
||||
- job_name: 'blackbox-dns-momo'
|
||||
metrics_path: /probe
|
||||
params:
|
||||
module: [dns_check_momo]
|
||||
static_configs:
|
||||
- targets:
|
||||
- 8.8.8.8 # Google DNS - momo.wooo.work
|
||||
labels:
|
||||
domain: 'momo.wooo.work'
|
||||
probe_type: 'dns'
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
- source_labels: [__param_target]
|
||||
target_label: instance
|
||||
- target_label: __address__
|
||||
replacement: blackbox-exporter:9115
|
||||
|
||||
# ===========================================================================
|
||||
# 監控系統自身
|
||||
# ===========================================================================
|
||||
|
||||
Reference in New Issue
Block a user