Grafana
- Check
datus grafana status healthandstatus whoami. - Discover resources before mutation with dashboard search, datasource list/health, panel list, and alert-rule reads.
- Use project-local JSON request bodies through
--json-file; do not place tokens or datasource secrets in them. - Prefer typed commands. Use guarded
api call METHOD /api/...or/apis/...only for official APIs without a typed command. - Read back any changed object and run a bounded panel/datasource query where relevant.
Grafana 12+ dashboard operations prefer the Kubernetes-style /apis API. In api_mode: auto, only a 404/405 capability failure falls back to legacy /api; authorization failures never fall back. Writes, query execution, exports, and raw API calls require confirmation.
Use grafana-dashboard-authoring for layout work and grafana-query-export for project context.