resource list
What this page covers
List one supported live Grafana resource kind.
When to open this page
- Use this when you need a read-only live inventory for one supported resource kind but do not yet need a higher-level domain workflow.
Purpose
List one supported live Grafana resource kind.
When to use
Use this when you need a read-only live inventory for one supported resource kind but do not yet need a higher-level domain workflow.
Key flags
- positional
KIND: one supported resource kind such asdashboards,folders,datasources,alert-rules, ororgs --profile,--url,--token,--basic-user,--basic-password: live Grafana connection settings--output-format: choosetext,table,json, oryaml
Examples
# Purpose: List dashboards as a table from a local Grafana.
grafana-util resource list dashboards --url http://localhost:3000 --basic-user admin --basic-password admin
# Purpose: List folders as YAML.
grafana-util resource list folders --profile prod --output-format yaml
# Purpose: List alert rules as JSON.
grafana-util resource list alert-rules --profile prod --output-format json