---
name: grafana-export
description: Generate a Markdown file with copyable Grafana dashboard JSON blocks, SLI queries, burn rate configs, and panel configurations. Ready to paste into Grafana import.
user_invocable: true
---

# Grafana Export

Generate a Markdown file with all Grafana dashboard configurations for a product's SLOs.

## Usage

```
/grafana-export                    # Interactive — asks which product
/grafana-export <product-slug>     # Generate for a specific product
```

## What It Generates

A Markdown file with:
- SLI queries in fenced code blocks (PromQL/MQL)
- Burn rate threshold tables
- Full Grafana panel JSON in collapsible sections
- Copy-paste ready for Grafana UI import
- One section per SLO

## Steps

1. **Generate Markdown**:
   ```bash
   bash "${CLAUDE_PLUGIN_ROOT}/scripts/export/generate_grafana_md.sh" SLUG
   ```

2. **Report** the file path to the user. They can:
   - Open in any Markdown viewer
   - Copy JSON blocks into Grafana > Dashboards > Import
   - Share as documentation

## Prerequisites

- Product must have SLOs with SLIs (run `/recommend-slos` first)

## Output

Markdown file at `.slo-cujs/products/<slug>/exports/grafana-<slug>.md`
