alloy
Skill by grafana
Builds telemetry pipelines with Grafana Alloy, an OpenTelemetry-compatible collector for metrics, logs, traces, and profiles. It is for engineers who write Alloy config files, replace Grafana Agent or OTel Collector, or debug why Alloy is not sending data.
Install alloy
Built from the published package, never by AI.
git clone --depth 1 https://github.com/grafana/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/grafana-core/alloy ~/.claude/skills/alloyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/grafana/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/grafana-core/alloy ~/.gemini/antigravity-cli/skills/alloyAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through writing, formatting, validating, and running Grafana Alloy configs. Alloy is described as one OpenTelemetry-compatible binary that collects metrics, logs, traces, and profiles and ships them to Grafana Cloud, Prometheus, Loki, Tempo, or Pyroscope. The skill covers the Alloy config language, including blocks, sys.env, and component references. It includes worked examples for Prometheus scraping to remote_write, file log shipping to Loki, and OTLP trace ingestion to Tempo.
The skill shows how to run alloy fmt and alloy validate, then check component health and sample counts through the Alloy UI on port 12345. It also lists troubleshooting steps for common failures. Reference files cover the component catalog and full pipelines for Kubernetes pods and other sources. It is aimed at developers and operators who set up observability agents for Grafana-based stacks.
Written from the project's SKILL.md and checked against it.
What it can do
- Write config.alloyBuilds Alloy config files using blocks, sys.env, and component references.
- Metrics pipelineConnects prometheus.scrape to prometheus.remote_write.
- Log shippingConnects loki.source.file and loki.process to loki.write.
- OTLP tracesConnects otelcol.receiver.otlp to an OTLP exporter for Tempo.
- Format and validateRuns alloy fmt and alloy validate to catch config errors before running.
- Health checksReads component health and sample metrics from the Alloy UI on port 12345.
- TroubleshootingLists checks for unhealthy components, dropped samples, and missing spans.
- Discovery and relabelingCovers Kubernetes, Docker, and EC2 discovery plus relabeling in the reference files.
What you need
- Alloy CLI installed via Homebrew, apt, or the grafana/alloy Docker image
- An endpoint to ship to, such as Grafana Cloud, Prometheus, Loki, Tempo, or Pyroscope
- An API key and username for that endpoint, exported as GRAFANA_API_KEY and similar variables
Try asking
- Write a config.alloy that scrapes localhost:9090 and sends metrics to Grafana Cloud.
- Set up Alloy to ship my app log files to Loki with the job label app.
- Receive OTLP traces on port 4317 and forward them to Tempo with basic auth.
Good to know
- Unknown component errors usually mean the installed Alloy version is too old.
- The SKILL.md shows three examples; full pipelines are in the reference files.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/grafana-core/alloy/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB -
references/collection-patterns.md11 KB -
references/components.md16 KB -
references/config-syntax.md9 KB
Alternatives to alloy
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
alloy: common questions
What does Grafana Alloy collect?
According to the source, Alloy collects metrics, logs, traces, and profiles in one OpenTelemetry-compatible binary.
Can this skill help replace Grafana Agent or the OTel Collector?
Yes. The description says it is used when replacing Grafana Agent or OTel Collector, and it links a migration guide from Grafana Agent.
How do I check if Alloy is sending data?
The skill suggests checking component health in the Alloy UI on port 12345 and watching sample counters such as prometheus_remote_storage_samples_total.
How do I install alloy?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is alloy free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is alloy safe to use?
It scores 77 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to alloy?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
