← ClaudeAtlas

grafanalisted

Use when operating a Grafana instance from the terminal — listing/searching dashboards, querying datasources, inspecting alert rules, running PromQL/LogQL/TraceQL over metrics/logs/traces, or pulling/pushing dashboards as code (GitOps). Triggers on Grafana, gcx, PromQL, LogQL, dashboard, alerts/告警, 查 Grafana, dashboard 管理, 監控查詢. Use this instead of a Grafana MCP server or raw curl/grafana-backup/grizzly. Self-hosted focused.
chenwei791129/agent-skills · ★ 0 · AI & Automation · score 59
Install: claude install-skill chenwei791129/agent-skills
# Grafana (via gcx CLI) Operate Grafana with [`gcx`](https://github.com/grafana/gcx), the official CLI: dashboards, datasources, alerts, metrics/logs/traces. It replaces a Grafana MCP server. **Do NOT** use raw `curl` against the Grafana HTTP API, and **do NOT** use `grafana-backup-tool` / `grizzly`. Those are pre-skill fallbacks. gcx gives you structured output, pagination, error handling, and token-efficient output, and its commands evolve with the Grafana version. > **Environment assumption**: this skill targets **self-hosted (OSS / > Enterprise)**. Auth uses a service account token + `org-id`. Grafana > Cloud-only features (SLO, Synthetic Monitoring, IRM, k6) **do not apply** — > when asked for those, say so and propose a self-hosted-viable alternative. ## 🔑 Core: discover before you act (the key to replacing MCP) gcx has many commands and they evolve, so **never memorize or guess commands**. Discover them with progressive disclosure to save tokens: ```bash gcx help-tree --depth 1 -o text # Step 1: list all top-level groups (~30 lines) gcx help-tree <group> -o text # Step 2: expand one group's subtree gcx <group> <subcommand> --help # Step 3: see exact flags and args ``` When unsure of syntax, run those three steps. Do **not** web-search grafana.com docs, and do not guess API paths. ## Prerequisite check ```bash gcx --version ``` If missing, download a pre-built binary from the [GitHub releases](https://github.com/grafana/gcx/releases) (no Go toolchain