grafana-util docs

grafana-util alert new-template

What this page covers

Create a low-level staged alert template scaffold.

When to open this page

  • Seed a new notification template file in a desired-state tree.
  • Start from a scaffold before adding template content.

Who this page is for

Best for operators who review alert rules, routes, contact points, and staged alert changes.

Purpose

Create a low-level staged alert template scaffold.

When to use

  • Seed a new notification template file in a desired-state tree.
  • Start from a scaffold before adding template content.

Key flags

  • --desired-dir points to the staged alert tree.
  • --name seeds the scaffold name.

Examples

# Purpose: Create a low-level staged alert template scaffold.
grafana-util alert new-template --desired-dir ./alerts/desired --name sev1-notification