templates/analytics/.builder/skills/grafana/SKILL.md
Query Grafana dashboards and Prometheus metrics for service health, LLM latency, and infrastructure monitoring. Use this skill when the user asks about service health, monitoring, alerts, or performance metrics.
npx skillsauth add BuilderIO/agent-native grafanaInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
$GRAFANA_URL (e.g. https://your-org.grafana.net)Authorization: Bearer $GRAFANA_API_TOKEN (service account token)GRAFANA_API_TOKENgrafanacloud-promserver/lib/grafana.ts| Function | Description |
| --------------------------------------------- | --------------------------------------- |
| listDashboards(query?) | Search dashboards by query |
| getDashboard(uid) | Full dashboard JSON with panels |
| getDatasources() | List all datasources |
| getAlertRules() | All alert rules (flattened from groups) |
| getAlertInstances() | Currently firing alert instances |
| queryDatasource(uid, queries[], from?, to?) | Proxy to Grafana's /api/ds/query |
| Route | Description |
| ------------------------------------ | ----------------------------------------- |
| GET /api/grafana/dashboards | Search dashboards |
| GET /api/grafana/dashboard?uid=... | Full dashboard JSON |
| GET /api/grafana/datasources | List datasources |
| GET /api/grafana/alerts | Alert rules and firing instances |
| POST /api/grafana/query | Query datasource (Prometheus, Loki, etc.) |
/adhoc/engineering — Engineering dashboard (mirrors a Grafana dashboard by UID){ results: { [refId]: { frames: [{ schema: { fields }, data: { values } }] } } }
values[0] = timestamps (epoch ms), values[1+] = metric valuesschema.fields[i].labels (e.g. { model: "claude-3.5" }){ time: number, [seriesName]: number }[]$CodegenMode → default quality-v4$AIModel → regex pattern, default .* (all)$environment → cloud or cloud-v2, default cloudvcpcodegen_completion_total, vcpcodegen_completion_latency_bucket, vcpcodegen_feedback_total, vcpcodegen_error_totalllm_completion_cost_total, llm_input_tokens_total, llm_output_tokens_total, llm_latency_bucket, llm_failures_total, llm_completions_totalprojects_proposed_config_total, projects_status_total, projects_remote_machine_*, projects_start_duration_bucketapi_request_total, with_span_duration_bucket, memory_heap_usage_percent_bucketfly_endpoint_total, fly_machine_*builderbot_pr_created_total, builderbot_pr_closed_totalqueryDatasource constructs body with datasource UID in each query target; timestamps as string msgetAlertRules flattens nested rule groups from unified alerting APIgetAlertInstances handles both array and wrapped object response shapesqueryDatasource skips cachehistogram_quantile() computes quantiles)For production issues, query Grafana/Prometheus FIRST:
llm_latency_bucket)api_request_total)llm_failures_total)Then check Sentry for application errors, Cloud Logging for raw logs.
tools
Public booking flow — the state machine, animations, and URL/app-state sync.
tools
Trigger-based automations — reminders, follow-ups, webhooks — across the booking lifecycle.
tools
Team event types, round-robin assignment, collective bookings, host weights, and no-show calibration.
development
The pure `computeAvailableSlots` function — inputs, outputs, invariants, and debugging guide.