Skip to content

Conversation

@greedy52
Copy link

@greedy52 greedy52 commented Dec 1, 2025

Add support to specify public URL via GRAFANA_PUBLIC_URL environment variable or X-Grafana-Public-URL header.

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).

@greedy52 greedy52 requested a review from a team as a code owner December 1, 2025 18:27
@CLAassistant
Copy link

CLAassistant commented Dec 1, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@sd2k sd2k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants