grafana-util alert list-templates
What this page covers
List live Grafana notification templates.
When to open this page
- Inspect template inventory from one org or from all visible orgs.
- Render the list in text, table, CSV, JSON, or YAML form.
Who this page is for
Best for operators who review alert rules, routes, contact points, and staged alert changes.
Purpose
List live Grafana notification templates.
When to use
- Inspect template inventory from one org or from all visible orgs.
- Render the list in text, table, CSV, JSON, or YAML form.
Key flags
--org-idlists templates from one Grafana org ID.--all-orgsaggregates inventory across visible orgs.--output-formatcontrols the output format, includingtext,table,csv,json, andyaml.--no-headeromits the header row.
Notes
- Use
--profilefor repeatable single-org inventory. - For
--all-orgs, prefer admin-backed--profileor direct Basic auth because token scope can return a partial view.
Before / After
- Before: open template pages one by one to see what notification templates exist.
- After: list the inventory once and compare it against the org or profile you care about.
What success looks like
- The templates you expect are present in the chosen format.
- The output scope matches the org or profile you intended to inspect.
- The format is ready for human review or scripting if needed.
Failure checks
- If the list is unexpectedly small, verify token scope or switch to a broader profile.
- If
--all-orgsmisses entries, try admin-backed credentials instead of a narrow token. - Confirm the org/profile before interpreting an empty response as a real absence.
Examples
# Purpose: List live Grafana notification templates.
grafana-util alert list-templates --profile prod --output-format table
# Purpose: List live Grafana notification templates.
grafana-util alert list-templates --url http://localhost:3000 --token "$GRAFANA_API_TOKEN" --output-format json
# Purpose: List live Grafana notification templates.
grafana-util alert list-templates --url http://localhost:3000 --basic-user admin --basic-password admin --all-orgs --output-format yaml