From dc7daf5d814bf0ccc3a69144ab88277edbfa1d61 Mon Sep 17 00:00:00 2001 From: OG T Date: Sat, 28 Mar 2026 23:59:46 +0800 Subject: [PATCH] =?UTF-8?q?docs(monitoring):=20=E6=9B=B4=E6=96=B0=20ArgoCD?= =?UTF-8?q?=20Metrics=20=E7=AB=AF=E9=BB=9E=E6=96=87=E6=AA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ArgoCD Server Pod 運行在 mon1 (192.168.0.121) - 更新 Prometheus target 為 192.168.0.121:30883 - 標記配置已部署並驗證 Co-Authored-By: Claude Opus 4.5 --- k8s/argocd/DEPLOY.md | 5 +++-- k8s/monitoring/prometheus-config-additions.yaml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/k8s/argocd/DEPLOY.md b/k8s/argocd/DEPLOY.md index f0ad4440..88df2b9b 100644 --- a/k8s/argocd/DEPLOY.md +++ b/k8s/argocd/DEPLOY.md @@ -26,10 +26,11 @@ kubectl get svc -n argocd | grep nodeport ## 3. Prometheus 抓取端點 ``` -http://192.168.0.120:30882/metrics # Application Controller -http://192.168.0.120:30883/metrics # Server Metrics +http://192.168.0.121:30883/metrics # Server Metrics (Pod 在 mon1) ``` +> ⚠️ 注意: ArgoCD Server Pod 運行在 mon1 (121),需使用該節點 IP + ## 4. 關鍵指標 | 指標 | 說明 | diff --git a/k8s/monitoring/prometheus-config-additions.yaml b/k8s/monitoring/prometheus-config-additions.yaml index 26a09faf..63f088c4 100644 --- a/k8s/monitoring/prometheus-config-additions.yaml +++ b/k8s/monitoring/prometheus-config-additions.yaml @@ -18,6 +18,7 @@ # ===== 新增 scrape_configs ===== # ArgoCD Metrics (需先部署 NodePort: k8s/argocd/argocd-metrics-nodeport.yaml) +# ✅ 2026-03-29 已部署並驗證 - job_name: argocd honor_timestamps: true scrape_interval: 30s @@ -26,10 +27,10 @@ scheme: http static_configs: - targets: - - 192.168.0.120:30883 # ArgoCD Server Metrics + - 192.168.0.121:30883 # ArgoCD Server Metrics (Pod 在 mon1) labels: component: server - # 註: Application Controller Metrics (30882) 需確認 ArgoCD 版本是否支援 + instance: argocd-server # TLS 證書監控 (使用 Blackbox Exporter) - job_name: blackbox-https