/vmkteam-developer:grafanafrom vmkteam-developer
Interacts with Grafana REST API for dashboards, Prometheus/Loki queries via datasource UID proxy, annotations, and alerts using pcurl.
Ships in vmkteam-developer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Grafana для дашбордов, метрик (Prometheus) и логов (Loki). Доступ через pcurl.
Конкретные хосты, datasource IDs/UIDs, dashboard UIDs определяются при онбординге.
Profile: @{grafana_profile}
Base URL: https://{grafana_host}/api
pcurl @{profile} 'https://{host}/api/search?type=dash-db' -s
pcurl @{profile} 'https://{host}/api/search?type=dash-db&query={service}' -s
pcurl @{profile} 'https://{host}/api/dashboards/uid/{dashboard_uid}' -s
pcurl @{profile} 'https://{host}/api/datasources' -s
Два способа (оба работают, UID-based — предпочтительный):
# UID-based (Grafana 9+, рекомендуется)
pcurl @{profile} 'https://{host}/api/datasources/uid/{prom_uid}/resources/api/v1/query?query={promql}' -s
pcurl @{profile} 'https://{host}/api/datasources/uid/{prom_uid}/resources/api/v1/query_range?query={promql}&start='$(date -v-1H +%s)'&end='$(date +%s)'&step=60' -s
# Legacy ID-based (работает, но deprecated)
pcurl @{profile} 'https://{host}/api/datasources/proxy/{prom_id}/api/v1/query?query={promql}' -s
# UID-based (рекомендуется) — путь /resources/ БЕЗ /loki/api/v1/
pcurl @{profile} "https://{host}/api/datasources/uid/{loki_uid}/resources/query_range" -s -G \
--data-urlencode 'query={logql}' \
--data-urlencode "start=$(date -v-1H +%s)000000000" \
--data-urlencode "end=$(date +%s)000000000" \
--data-urlencode 'limit=50'
# Labels
pcurl @{profile} 'https://{host}/api/datasources/uid/{loki_uid}/resources/labels' -s
# Legacy ID-based (работает, но deprecated)
pcurl @{profile} "https://{host}/api/datasources/proxy/{loki_id}/loki/api/v1/query_range" -s -G \
--data-urlencode 'query={logql}' \
--data-urlencode "start=$(date -v-1H +%s)000000000" \
--data-urlencode "end=$(date +%s)000000000" \
--data-urlencode 'limit=50'
pcurl @{profile} 'https://{host}/api/annotations?from='$(date -v-1H +%s)000'&to='$(date +%s)000'&limit=50' -s
pcurl @{profile} 'https://{host}/api/annotations?dashboardUID={uid}&from='$(date -v-24H +%s)000'&to='$(date +%s)000 -s
pcurl @{profile} 'https://{host}/api/alertmanager/grafana/api/v2/alerts?active=true' -s
pcurl @{profile} 'https://{host}/api/ruler/grafana/api/v1/rules' -s
https://{host}/d/{dashboard_uid}?from=now-1h&to=now
https://{host}/d/{dashboard_uid}?var-job={service}&from=now-1h&to=now
https://{host}/explore?schemaVersion=1&panes={"pane":{"datasource":"{prom_uid}","queries":[{"expr":"{promql}"}],"range":{"from":"now-1h","to":"now"}}}
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub vmkteam/claude-plugins --plugin vmkteam-developer36 skills in this plugin
/api-healthAPI Health — проверка здоровья JSON-RPC сервиса через SMD. Используй когда нужно убедиться что RPC-endpoint жив, собрать тайминги методов или диагностировать недоступность API./appkitAppkit — библиотека vmkteam/appkit: метрики, pprof, HTTP client, service metadata, X-Request-ID. Используй при подключении метрик/pprof в сервис, работе с HTTP-клиентом appkit или добавлении корреляционных ID./ci-cdCI/CD — GitLab CI + Nomad deploy для Go-сервисов vmkteam. Используй при редактировании .gitlab-ci.yml, *.nomad.hcl, настройке пайплайна или дебаге деплоя.