Grafana
Build dashboards to monitor and explore your application data.
- app
- observability
Run it
briq run grafanabriq_run({ recipe: "grafana", wait: true })curl -X POST https://api.briq.cloud/v1/briqs \
-H "Authorization: Bearer $BRIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"recipe": "grafana",
"wait": true
}'
# → { "briqs": [{ "id": "bq_…", … }], "outputs": { "GRAFANA_URL": "…" }, … }
# ... when done, for each briq id
curl -X DELETE https://api.briq.cloud/v1/briqs/<id> \
-H "Authorization: Bearer $BRIQ_API_KEY"stack: app
services:
grafana:
recipe: grafana
# its defaults, each a field you can set:
# image: grafana/grafana:latest
# size: small
# volume: { gb: 1 }Fields
| Name | Type | Options | Default |
|---|---|---|---|
| image | string | — | "grafana/grafana:latest" |
| env | record | { key: string | { secret, value?, literal?, scope?, hosts?, locations? } } | {} |
| cmd | string | string[] | — | — |
| size | enum | nano, small, medium | "small" |
| volume | object | { gb? } | {"gb":1} |
| files | record | { key: string | { base64 } } | — |
| egress | object | { hosts } | — |
Outputs
Returned by briq_run once the stack is healthy. Hosts resolve inside your team network; secrets are generated per run.
- GRAFANA_URL
- http://grafana.<stack>.internal:3000
- GRAFANA_ADMIN_USER
- admin
- GRAFANA_ADMIN_PASSWORD
- <GRAFANA_ADMIN_PASSWORD>
What it runs
| Briq | Image | Ports | Size | Volume |
|---|---|---|---|---|
| grafana | grafana/grafana:latest | 3000 | small | 1 GB at /var/lib/grafana |
When to use it
- The agent reports a load test or a long run as a paragraph of numbers, and you would rather see a chart.
- You want dashboards over data the agent's briqs already produce: Postgres, a Prometheus endpoint, logs.
- You want to hand someone a live dashboard instead of a note that goes stale.
Tips
- Wire it from the API:
POST /api/datasourcesonGRAFANA_URLwith basic auth (GRAFANA_ADMIN_USER,GRAFANA_ADMIN_PASSWORD). - Data sources in the same stack stay private; only Grafana needs a URL.
- Dashboards as JSON:
POST /api/dashboards/dbbeats building panels by hand. - Share it:
briq_run({ recipe: "grafana", expose: "private" }), orbriq_exposeport 3000 withmode: "private". - More room: the volume starts small; set
volume: { gb }for more. Set it when the briq is created, and it counts toward your plan's disk.