7.2.2 > 7.3.5 broke Grafana behind F5 loadbalancer, how to fix it?


We are using hundreds Grafana instances accessible behind F5 loadbalancer with the help of the APM (access policy manager) module, so user sees so called landing page and F5 acts as proxy, for example if user clicks some site Grafana button, new page opens and the URL is:


F5 presents URI in HEX, in decoded view it’s - f5-w-<HEX_equivalent_of_backend_FQDN>$$

This all worked fine with grafana-7.2.2-1.x86_64 but does not work with grafana-7.3.5-1.x86_64 as seems Grafana started to make some redirections, as in F5 log I can see:

grafana-site2.internal.domainf5-h- can not be resolved

Why Grafana tries to make such absolute path redirection? I did read changelog, but I didn’t find any general change, so what could be the reason for such behavior? Grafana config is same as before:

http_port = 443
protocol = https
enable_gzip = true
cert_file = /etc/grafana/certs/ca.pem
cert_key = /etc/grafana/certs/key.pem
root_url = https://grafana.<%= scope.lookupvar(’::domain’) %>/

So what is the cause and how to fix it?


There seems to be either a breaking change or a bug, i found similar post to yours :

Note : I would suggest you create an Issue on GitHub.

Hope it helps.

Good Luck