feat: add support to specify public URL via GRAFANA_PUBLIC_URL#408
Open
greedy52 wants to merge 1 commit intografana:mainfrom
Open
feat: add support to specify public URL via GRAFANA_PUBLIC_URL#408greedy52 wants to merge 1 commit intografana:mainfrom
greedy52 wants to merge 1 commit intografana:mainfrom
Conversation
sd2k
reviewed
Dec 15, 2025
Collaborator
sd2k
left a comment
There was a problem hiding this comment.
Thanks @greedy52. I'm curious whether, for your use case, it would work if we fetched Grafana's public URL from its settings instead (/api/frontend/settings in the appUrl field of the JSON). If we can avoid adding another config var that would be good.
|
@greedy52 is this work discontinued? We would also like this feature. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support to specify public URL via
GRAFANA_PUBLIC_URLenvironment variable orX-Grafana-Public-URLheader.The public URL is used to generate links to Grafana. Useful when the MCP server access the Grafana instance via a local URL, while users access the Grafana instance with this public URL (where Grafana/MCP server behind load balancers or reverse proxies).