avoid-common-grafana-mistakes
Avoid common Grafana mistakes — query pitfalls, variable templating, alerting traps, and provisioning gotchas.
от rondoflow★ 37 звёзд на GitHub
Установить avoid-common-grafana-mistakes в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Variables and Templating
- Multi-value variable needs
$__allin regex — or only first value used ${var:csv}for comma-separated —${var:pipe}for pipe-separated in regex- Variable in query:
$varor${var}— different escaping per data source $__intervalauto-adjusts to time range — use for aggregation window- Chained variables: child depends on parent — set "Refresh" to "On time range change"
Prometheus Queries
rate()needs range vector —rate(requests_total[5m])notrate(requests_total)rate()for counters,deriv()for gauges — rate handles counter resets$__rate_intervalover hardcoded — adapts to scrape interval and dashboard range- Labels in legend:
{{label}}— multiple:{{instance}} - {{job}} - Regex filter:
metric{label=~"val1|val2"}—!~for negative match
Panel Configuration
- "No data" vs "null" are different — configure in display options
- Thresholds work on last value — not all values in range
- Min/max must match your data range — auto-scaling can hide anomalies
- Time series for trends, stat for current value — choose visualization wisely
Alerting
- Alert evaluates on server — not browser, query must work without variables
- Variables not supported in alerts — hardcode values or use templates
- Multiple conditions: AND is default — configure for OR if needed
- Alert state "Pending" before "Firing" — for duration, prevents flapping
- Notification channel must be configured — alert without channel = no notification
Dashboard Provisioning
- JSON export includes data source UID — will fail if different on import
- Use data source variables —
${DS_PROMETHEUS}substituted at runtime - Provisioned dashboards read-only by default —
allowEditing: truein provisioning - Folder must exist before dashboard provisioning — or import fails silently
Data Sources
- "Server" mode proxies through Grafana — hides credentials from browser
- "Browser" mode direct from browser — faster but exposes URL/auth
- Test connection catches most issues — but not query-specific problems
- TLS skip verify for self-signed — but fix proper certs for production
Transformations
- Order matters — transformations apply in sequence
- Outer join for combining queries — match on time or label
- Reduce for aggregating time series — last, mean, max, etc.
- Add field from calculation — combine metrics client-side
Common Mistakes
- Time range selector affects variable queries — unexpected results with "All time"
- Dashboard saved but datasource not — works locally, breaks on import
- Alert rule in dashboard vs Grafana alerting — different systems, don't mix
- Panel queries run on every refresh — high-cardinality queries slow dashboard
- Annotation queries add DB load — use sparingly on busy dashboards
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- manifest.json
FAQ
Что делает скилл avoid-common-grafana-mistakes?
Avoid common Grafana mistakes — query pitfalls, variable templating, alerting traps, and provisioning gotchas.
Как установить скилл avoid-common-grafana-mistakes?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл avoid-common-grafana-mistakes запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…