Skip to content

fix: grafana public dashboard URLs use localhost instead of real domain#10

Merged
josecelano merged 2 commits intomainfrom
9-grafana-public-dashboard-url-uses-localhost
Mar 12, 2026
Merged

fix: grafana public dashboard URLs use localhost instead of real domain#10
josecelano merged 2 commits intomainfrom
9-grafana-public-dashboard-url-uses-localhost

Conversation

@josecelano
Copy link
Copy Markdown
Member

Summary

Fixes the root cause of Grafana generating public dashboard share links with
http://localhost:3000 instead of the real domain.

Changes

  • server/opt/torrust/.env — add GF_SERVER_ROOT_URL to the Grafana section
  • server/opt/torrust/docker-compose.yml — inject GF_SERVER_ROOT_URL into the Grafana service environment
  • docs/media/grafana-dashboards.webp — composite preview image of all three dashboards
  • README.md — add Grafana Dashboards section with public links and individual screenshot links
  • docs/issues/ISSUE-9-grafana-public-dashboard-url-uses-localhost.md — update issue doc with real image filename and cross-reference to deployer issue

Public dashboard links

Dashboard URL
Tracker Overview https://grafana.torrust-tracker-demo.com/public-dashboards/186b355b56cd482d9c441a0affdb8ecd
UDP Tracker 1 https://grafana.torrust-tracker-demo.com/public-dashboards/6d493d22396c4e3cbaeec5669ed2ae69
HTTP Tracker 1 https://grafana.torrust-tracker-demo.com/public-dashboards/ca57cd298a0240c5b7b7965b3c47ebcf

Related

Closes #9
See also: torrust/torrust-tracker-deployer#415 — the same fix should be applied upstream in the deployer

Without this setting, Grafana defaults to http://localhost:3000 when
generating public dashboard share URLs, making them unreachable externally.

Refs: #9
- Add composite preview image (docs/media/grafana-dashboards.webp)
- Add Grafana Dashboards section with public dashboard links and
  individual screenshot links for all three dashboards
- Update issue doc with real image filename and deployer cross-reference

Refs: #9
@josecelano josecelano self-assigned this Mar 12, 2026
@josecelano josecelano requested review from da2ce7 March 12, 2026 16:52
@josecelano
Copy link
Copy Markdown
Member Author

ACK e8bda81

@josecelano josecelano merged commit cd2261e into main Mar 12, 2026
2 checks passed
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.

fix: grafana public dashboard URLs use localhost instead of real domain

1 participant