Use Traefik to strip prefix for Grafana if needed
This commit is contained in:
parent
5aab4c8cca
commit
c4228f5e83
|
@ -2512,7 +2512,6 @@ _EOT
|
|||
http_addr = 127.0.0.1
|
||||
http_port = 3000
|
||||
root_url = https://grafana.example.org
|
||||
serve_from_sub_path = false
|
||||
|
||||
[database]
|
||||
type = postgres
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
http_addr = 127.0.0.1
|
||||
http_port = 3000
|
||||
root_url = [[ .monitoring.grafana.public_url ]]
|
||||
serve_from_sub_path = [[ if eq (urlParse .monitoring.grafana.public_url).Path "" ]]false[[ else ]]true[[ end ]]
|
||||
|
||||
[database]
|
||||
type = postgres
|
||||
|
|
|
@ -360,8 +360,6 @@ monitoring:
|
|||
csp:
|
||||
img-src: "'self' data: blob: https://grafana.com"
|
||||
connect-src: "'self' https://grafana.com"
|
||||
# No need to strip prefix as Grafana will be configured to handle it correctly
|
||||
strip_prefix: false
|
||||
consul:
|
||||
connect:
|
||||
# Connect to postgres, loki and prometheus with the service mesh
|
||||
|
@ -394,7 +392,7 @@ monitoring:
|
|||
mode: session
|
||||
prometheus:
|
||||
# URL where Grafana metrics are reachable for the metrics proxy (from inside the container PoV)
|
||||
metrics_url: http://127.0.0.1:3000[[ (urlParse .monitoring.grafana.public_url).Path ]]/metrics
|
||||
metrics_url: http://127.0.0.1:3000/metrics
|
||||
|
||||
# Agent runs as a system jobs, on all the nodes
|
||||
agent:
|
||||
|
|
Loading…
Reference in New Issue