# alloy

> Claude/Codex skill by [@grafana](https://omgskills.com/library/grafana/index.md) · 286 stars · Updated 2026-10-17

Build a unified telemetry pipeline with Grafana Alloy — one OpenTelemetry-compatible binary that collects metrics, logs, traces, and profiles and ships to Grafana Cloud / Prometheus / Loki / Tempo / Pyroscope. Covers the Alloy config language (blocks, \`sys.env\`, component refs), \`prometheus.scrape\` → \`remote\_write\`, \`loki.source.file\` + \`loki.process\` → \`loki.write\`, \`otelcol.receiver.otlp\` → \`otelcol.exporter.otlp\`, \`pyroscope.scrape\`, K8s / Docker / EC2 discovery, relabeling, modules (\`import.file/git/http\`), clustering, Fleet Management \`remotecfg\`, the Alloy UI at \`:12345\`, and \`alloy fmt\` / \`alloy validate\`. Use when writing a \`config.alloy\`, replacing Grafana Agent / OTel Collector, scraping K8s pods, parsing logs, ingesting OTLP, or debugging "Alloy isn't sending anything" — even when the user says "set up the agent", "write me a scrape config", "drop these logs before sending", or "OTel collector config" without naming Alloy.

## Install

```sh
git clone https://github.com/grafana/skills /tmp/skills && ln -s /tmp/skills/skills/grafana-core/alloy ~/.claude/skills/alloy
```

## From README

Grafana Alloy Docs: https://grafana.com/docs/alloy/latest/ OpenTelemetry-compatible collector — one binary for metrics + logs + traces + profiles. Prerequisites alloy CLI installed (brew grafana/grafana/alloy, apt alloy, or grafana/alloy Docker image) An endpoint to ship to (Grafana Cloud, Prometheus, Loki, Tempo, Pyroscope) API key + username for that endpoint, exported as GRAFANAAPIKEY etc. Common Workflows Write + validate a config locally Add log shipping (file → Loki) Receive OTLP traces and ship to Tempo Full pattern set (Kubernetes discovery + relabel, complete Cloud pipeline for all 4 signals): references/collection-patterns.md.

## Links

- HTML page: https://omgskills.com/library/grafana/skills/alloy/
- GitHub: https://github.com/grafana/skills
- Author: [@grafana](https://omgskills.com/library/grafana/index.md)

## More from this repo

- [k6-docs](https://omgskills.com/library/grafana/skills/k6-docs/index.md) — Used to write or review k6 documentation across the three k6 repositories - k6-DefinitelyTyped (TypeScript types),...
   - [@grafana](https://omgskills.com/library/grafana/index.md) · 295 stars
- [adaptive-metrics](https://omgskills.com/library/grafana/skills/adaptive-metrics/index.md) — Cut Grafana Cloud Metrics cost by shrinking active-series count with Adaptive Metrics aggregation rules —...
   - [@grafana](https://omgskills.com/library/grafana/index.md) · 286 stars
- [admin](https://omgskills.com/library/grafana/skills/admin/index.md) — Used to manage Grafana Cloud accounts — organizations, stacks, RBAC roles and assignments, SSO/SAML/OAuth/GitHub auth,...
   - [@grafana](https://omgskills.com/library/grafana/index.md) · 286 stars
