🔗 Add Grafana route to Traefik
✅ 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:
parent
1eafce7290
commit
05979bdc03
|
|
@ -165,6 +165,15 @@ http:
|
|||
interval: "30s"
|
||||
timeout: "15s"
|
||||
|
||||
grafana-cluster:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://influxdb.tailnet-68f9.ts.net:3000" # Grafana服务
|
||||
healthCheck:
|
||||
path: "/api/health"
|
||||
interval: "30s"
|
||||
timeout: "15s"
|
||||
|
||||
routers:
|
||||
consul-api:
|
||||
rule: "Host(`consul.git-4ta.live`)"
|
||||
|
|
@ -226,6 +235,14 @@ http:
|
|||
- websecure
|
||||
tls:
|
||||
certResolver: cloudflare
|
||||
|
||||
grafana-ui:
|
||||
rule: "Host(`grafana.git-4ta.live`)"
|
||||
service: grafana-cluster
|
||||
entryPoints:
|
||||
- websecure
|
||||
tls:
|
||||
certResolver: cloudflare
|
||||
EOF
|
||||
destination = "local/dynamic.yml"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue