grafana-util-datasource-list.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-datasource-list - List datasource inventory from live Grafana or a local export bundle.
SYNOPSIS
grafana-util datasource list [OPTIONS]
DESCRIPTION
List datasource inventory from live Grafana or a local export bundle.
Use this when you need a non-interactive inventory of datasources, either from live Grafana for the current org, one explicit org, or across all visible orgs, or from a local export bundle on disk.
BEFORE / AFTER
- Before: datasource inventory was easy to read only after jumping between Grafana UI, export bundles, or ad hoc API calls.
- After: one inventory command can give you a reviewable snapshot in text, table, CSV, JSON, or YAML from live Grafana or a local bundle.
COMMON OPTIONS
- --input-dir
- read a local datasource export bundle or provisioning tree.
- --input-format
- choose inventory or provisioning when the local path can mean either source shape.
- --org-id
- list one explicit Grafana org.
- --all-orgs
- aggregate datasource inventory across visible orgs. Requires Basic auth.
- --output-format, --text, --table, --csv, --json, --yaml
- output mode controls.
- --output-columns
- choose the displayed columns.
- --no-header
- suppress table headers.
SUCCESS CRITERIA
- you can point the command at the org you care about or at a local bundle and get the inventory you expected
- table and CSV output are easy to hand to a script or review in a pull request
- all-org inventory only happens when you really want a cross-org read
FAILURE CHECKS
- if the inventory is empty, confirm the org scope and whether the credentials can see the target org
- if --all-orgs fails, fall back to Basic auth and check whether the token is limited to one org
- if a local bundle does not read correctly, confirm --input-dir and --input-format
- if column selection looks wrong, verify the output format and requested columns together
EXAMPLES
List datasource inventory from live Grafana or a local export bundle.
grafana-util datasource list --url http://localhost:3000 --basic-user admin --basic-password admin --output-format textSEE ALSO
grafana-util(1), grafana-util-datasource(1)