Railway's official agent skill: create projects, provision databases and buckets, deploy, manage variables and domains, and read build failures back — from the CLI, API or MCP server.
Grafana Alloy Collector ConfigsSkill
Summary
Grafana's official Alloy skill: write one collector config that carries metrics, logs, traces and profiles, validate it locally, and prove samples are actually leaving the box.
Features
- Alloy config language: blocks, expressions, sys.env and component references
- Runnable pipelines for Prometheus remote write, Loki log shipping and OTLP to Tempo
- alloy fmt and alloy validate as a pre-run syntax gate
- Health verification through the component API on port 12345 and remote-write metrics
- Kubernetes, Docker and EC2 discovery with relabeling rules
- Modules via import.file/git/http, clustering and Fleet Management remotecfg
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Description
Grafana Alloy is a single OpenTelemetry-compatible binary that replaces Grafana Agent and, for most stacks, a separate OTel Collector — one process collecting metrics, logs, traces and profiles and shipping them to Grafana Cloud, Prometheus, Loki, Tempo and Pyroscope. This is Grafana Labs' official skill for writing and debugging its configuration.
The config language is the part people get wrong, because Alloy components reference each other by name rather than sitting in a YAML pipeline list. The skill covers blocks, attributes and expressions, sys.env for secrets, and the component-reference syntax that connects prometheus.scrape to prometheus.remote_write.cloud.receiver. Complete, runnable configs are given for the three pipelines that cover most deployments: Prometheus scrape to remote write, loki.source.file through loki.process to loki.write, and an OTLP receiver forwarding to a Tempo exporter with otelcol.auth.basic.
What sets it apart is that each workflow ends with verification rather than a claim of success. alloy fmt and alloy validate catch syntax before a run; a jq filter against the component API on port 12345 lists any component that is not healthy and why; and prometheus_remote_storage_samples_total plus enqueue_retries_total confirm data is genuinely flowing rather than queueing. The log and trace pipelines get equivalent checks through loki.source.file targets and otelcol_receiver_accepted_spans.
Wider ground covered includes Kubernetes, Docker and EC2 service discovery with relabeling, modules via import.file / import.git / import.http, clustering, and Fleet Management through remotecfg. The troubleshooting section maps the failures that actually happen — "component not found" from an outdated binary, unhealthy components in the UI, dropped remote-write samples, and refused spans on the OTLP receiver — to the specific metric or page that identifies the cause.
Apache-2.0, part of the grafana/skills repository, installable via npx skills add grafana/skills or the Claude Code plugin marketplace. A companion reference carries the full component catalogue and end-to-end pipelines for all four signals.
Related Skills
Diagnoses wrong gradients in differentiable NVIDIA Warp programs by measuring first — comparing autodiff against finite differences on a shrunk reproduction before proposing any fix.
Google's official skill for the gws CLI — drive Gmail, Drive, Calendar, Sheets, Docs, Chat and Admin APIs from an agent, with Model Armor screening.
Netlify's official skill for zero-config managed Postgres — querying from Functions, Drizzle setup, migrations and per-preview database branches.