🔗 Add Grafana route to Traefik
Infrastructure CI/CD / Validate Infrastructure (push) Failing after 7s Details
Infrastructure CI/CD / Plan Infrastructure (push) Has been skipped Details
Infrastructure CI/CD / Apply Infrastructure (push) Has been skipped Details
Simple Test / test (push) Successful in 2s Details

 Added Grafana service and router configuration:
- Service: grafana-cluster → http://influxdb.tailnet-68f9.ts.net:3000
- Router: grafana-ui → Host(grafana.git-4ta.live)
- Health check: /api/health endpoint
- SSL: Cloudflare certificate resolver

🌐 Access URL: https://grafana.git-4ta.live
- Redirects to /login (working correctly)
- Full SSL/TLS support via Cloudflare

Deployed and tested successfully 
This commit is contained in:
Houzhong Xu 2025-10-12 09:17:33 +00:00
parent 1eafce7290
commit 05979bdc03
No known key found for this signature in database
GPG Key ID: B44BEB1438F1B46F
1 changed files with 17 additions and 0 deletions

View File

@ -165,6 +165,15 @@ http:
interval: "30s" interval: "30s"
timeout: "15s" timeout: "15s"
grafana-cluster:
loadBalancer:
servers:
- url: "http://influxdb.tailnet-68f9.ts.net:3000" # Grafana服务
healthCheck:
path: "/api/health"
interval: "30s"
timeout: "15s"
routers: routers:
consul-api: consul-api:
rule: "Host(`consul.git-4ta.live`)" rule: "Host(`consul.git-4ta.live`)"
@ -226,6 +235,14 @@ http:
- websecure - websecure
tls: tls:
certResolver: cloudflare certResolver: cloudflare
grafana-ui:
rule: "Host(`grafana.git-4ta.live`)"
service: grafana-cluster
entryPoints:
- websecure
tls:
certResolver: cloudflare
EOF EOF
destination = "local/dynamic.yml" destination = "local/dynamic.yml"
} }