Homepage dashboard improvements #76

Merged
eblume merged 13 commits from feature/homepage-dashboard-updates into main 2026-01-30 15:05:03 -08:00
2 changed files with 2 additions and 30 deletions
Showing only changes of commit 5c6cddba0d - Show all commits

Revert Grafana iframe embedding attempt

Iframe approach didn't work well:
- Homepage iframe widget only supports height, not width constraints
- Some panels fail to load even with anonymous auth
- Reverted to authenticated-only Grafana access

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Erich Blume 2026-01-30 14:41:14 -08:00

View file

@ -26,16 +26,8 @@ grafana.ini:
server:
root_url: https://grafana.tail8d86e.ts.net
security:
# Allow embedding panels in iframes (for Homepage dashboard)
allow_embedding: true
# Required for iframe session cookies
cookie_samesite: lax
auth.anonymous:
# WARNING: All dashboards readable without login
# Security relies on Tailscale ACLs - only tailnet members can reach Grafana
# Required for iframe embeds with template variables and non-Prometheus datasources
enabled: true
org_role: Viewer
# Embedding disabled - iframe approach didn't work well for Homepage
allow_embedding: false
analytics:
check_for_updates: false
reporting_enabled: false

View file

@ -73,24 +73,6 @@ config:
format:
type: bytes
# Metrics group - Grafana panel embeds
- Metrics:
- Tesla Battery:
widget:
type: iframe
src: https://grafana.ops.eblu.me/d-solo/WopVO_mgz/tesla-charge-level?orgId=1&from=now-2d&to=now&timezone=browser&var-car_id=1&var-base_url=https://tesla.ops.eblu.me&var-bucket_width=7200&panelId=2&theme=dark
classes: h-96 w-72
- Outside Temp:
widget:
type: iframe
src: https://grafana.ops.eblu.me/d-solo/kOuP_Fggz/tesla-overview?orgId=1&from=now-24h&to=now&timezone=browser&var-car_id=All&var-length_unit=mi&var-temp_unit=F&var-preferred_range=rated&var-base_url=https://tesla.ops.eblu.me&refresh=30s&panelId=8&theme=dark
classes: h-40 w-48
- Inside Temp:
widget:
type: iframe
src: https://grafana.ops.eblu.me/d-solo/kOuP_Fggz/tesla-overview?orgId=1&from=now-24h&to=now&timezone=browser&var-car_id=All&var-length_unit=mi&var-temp_unit=F&var-preferred_range=rated&var-base_url=https://tesla.ops.eblu.me&refresh=30s&panelId=9&theme=dark
classes: h-40 w-48
# External bookmarks
bookmarks:
- Admin:
@ -124,8 +106,6 @@ config:
layout:
Host Services:
style: column
Metrics:
style: row
Apps:
style: column
Observability: