grafana-helper
БесплатноБез исполняемых скриптовНе проверенUse Grafana's GCX CLI for dashboards, datasources, Prometheus metrics, Loki logs, Tempo traces, alert rules, and Grafana resource operations. Trigger for…
от shepherdjerred★ 85 звёзд на GitHubОб этом скилле
Grafana with GCX
Use Grafana's native gcx CLI. Inside shepherdjerred/monorepo, invoke it
through toolkit so the tracked homelab context is selected consistently:
toolkit grafana --version
toolkit grafana help-tree
toolkit grafana commands
Use native gcx directly outside the monorepo or when explicitly requested.
Do not recreate routine GCX capabilities with handwritten REST calls.
Discover before operating
GCX evolves quickly. Read help on the exact command instead of guessing flags:
toolkit grafana <group> --help
toolkit grafana <group> <command> --help
toolkit grafana agent skills list
toolkit grafana agent skills get <name> -o text
Prefer --agent or -o json for machine-readable evidence. Use --json list
where offered to discover selectable fields. Never enable
--insecure-log-http-payload; it can expose authorization material.
Toolkit resolves GRAFANA_API_KEY automatically from the environment, a
toolkit config locator, or its registered 1Password service-account backend.
The tracked GCX configuration owns the homelab context; credential setup is
documented in packages/toolkit/README.md.
Do not run gcx login, print tokens, add credentials to
arguments, or create another config store during normal repository work.
Query observability data
Toolkit exposes focused aliases for the three signal backends:
toolkit prom query 'up == 0'
toolkit prom query 'rate(http_requests_total[5m])' --since 1h -o json
toolkit loki query '{namespace="temporal"} |= "error"' --since 1h --limit 50
toolkit loki query '{app="birmel"}' -o raw
toolkit tempo query --help
Start broad enough to establish scope, then narrow by service, namespace, deployment, endpoint, trace ID, and time window. Correlate signals rather than claiming a root cause from one log line or one metric spike. Record the exact query and time window in incident evidence.
For active alerts, distinguish the layers:
toolkit prom query 'ALERTS{alertstate="firing"}'shows firing Prometheus series.toolkit grafana alert rules listinspects Grafana-managed rule definitions and evaluation state.toolkit alerts list --state openshows the monorepo's durable alert occurrence ledger.
An empty Grafana-managed rule list is not an outage when Kubernetes
PrometheusRule resources and Alertmanager own alerting.
Inspect Grafana resources
Discover the command-specific flags first, then use native groups:
toolkit grafana dashboards --help
toolkit grafana dashboards list
toolkit grafana datasources --help
toolkit grafana alert rules list
toolkit grafana alert rules get <uid>
Use toolkit grafana api only when GCX has no typed command for a required
read. Confirm the endpoint through current Grafana documentation or command
help, keep credentials inside GCX, and validate returned data before drawing a
conclusion.
Mutation boundary
Dashboard, datasource, alert-rule, and other resource changes are external mutations. Require explicit user authorization and identify the exact context, resource, and intended diff before writing.
GCX's resource workflow is the preferred mutation surface:
toolkit grafana resources pull <resource-type> -p <directory>
toolkit grafana resources push --help
toolkit grafana resources delete --help
Pull and inspect current state first. Validate generated files and the target context, then apply only the authorized resource set. After a write, read the resource back and verify the relevant runtime signal separately; a successful API response does not prove a dashboard query, alert evaluation, or telemetry pipeline works end to end.
Failure handling
- A missing context or credential is a setup failure; repair the tracked dotfiles path rather than bypassing it with an ad hoc token.
- A query error is evidence, not an empty result. Preserve stderr and the exit code.
- If GCX lacks a capability, state the gap before using
grafana api; do not silently fall back to an unvalidated curl recipe. - Keep reads and writes distinct. Investigation does not authorize dashboard, alert, annotation, or datasource changes.
Установить grafana-helper в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл grafana-helper?
Use Grafana's GCX CLI for dashboards, datasources, Prometheus metrics, Loki logs, Tempo traces, alert rules, and Grafana resource operations. Trigger for Grafana, GCX, dashboards, PromQL, LogQL, metrics, logs, traces, Tempo, alert rules, or observability investigations.
Как установить скилл grafana-helper?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл grafana-helper запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic