grafana-util docs

grafana-util-dashboard-serve.1

Browser-readable rendering of a generated roff manpage.

This page renders the generated roff manpage into readable HTML for browser use. For richer per-subcommand detail, prefer the command-reference pages.

NAME

grafana-util-dashboard-serve - Serve one or more dashboard drafts through a lightweight local preview server.

SYNOPSIS

grafana-util dashboard serve [OPTIONS]

DESCRIPTION

Serve one or more dashboard drafts through a lightweight local preview server.

Use this when you are iterating on one dashboard draft, one draft directory, or one generator command and want a local browser surface without publishing back to Grafana after every change.

COMMON OPTIONS

--input
local dashboard file or directory to load into the preview server.
--script
external generator command whose stdout emits one dashboard JSON or YAML document, or an array of documents.
--script-format
parse --script stdout as json or yaml.
--watch
extra local files or directories to watch for reloads.
--no-watch
disable background polling reloads.
--open-browser
open the preview URL in your default browser after the server starts.
--address, --port
bind address and port for the local preview server.

EXAMPLES

Serve one or more dashboard drafts through a lightweight local preview server.

grafana-util dashboard serve --input ./drafts/cpu-main.json --port 18080 --open-browser

SEE ALSO

grafana-util(1)