grafana-util docs

dashboard fetch-live

What this page covers

Fetch one live dashboard into an API-safe local JSON draft.

When to open this page

  • Use this when you need a local copy of one live dashboard for review, patching, cloning, or later publish work.

Who this page is for

Best for SREs, Grafana operators, and responders working with dashboard inventory, migration, inspection, or screenshots.

Purpose

Fetch one live dashboard into an API-safe local JSON draft.

When to use

Use this when you need a local copy of one live dashboard for review, patching, cloning, or later publish work.

Key flags

  • --dashboard-uid: live Grafana dashboard UID to fetch.
  • --output: write the fetched draft to this path.
  • Shared live flags: --url, --token, --basic-user, --basic-password, --profile.

Examples

# Purpose: Fetch one live dashboard into an API-safe local JSON draft.
grafana-util dashboard fetch-live --profile prod --dashboard-uid cpu-main --output ./cpu-main.json
# Purpose: Fetch one live dashboard into an API-safe local JSON draft.
grafana-util dashboard fetch-live --profile prod --url http://localhost:3000 --basic-user admin --basic-password admin --dashboard-uid cpu-main --output ./cpu-main.json