# opentelemetry

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

Instrument any app with OpenTelemetry and ship metrics / logs / traces to Grafana Cloud or self-hosted Mimir / Loki / Tempo / Pyroscope. Covers SDK auto-instrumentation for Go, Java (Grafana JVM agent), Python (\`opentelemetry-instrument\`), Node.js, .NET (\`Grafana.OpenTelemetry\`), Beyla eBPF for zero-code; Grafana Cloud OTLP gateway + Basic-auth (instanceID + API key, base64); env-var config (\`OTEL\_EXPORTER\_OTLP\_\*\`, \`OTEL\_RESOURCE\_ATTRIBUTES\`); Alloy / OTel-Collector pipelines; Kubernetes Operator inject-annotations; and head + tail sampling. Use when instrumenting a service, pointing OTLP at Grafana Cloud, switching from Jaeger / Datadog / New Relic, choosing head- vs tail-sampling, or debugging "spans aren't showing in Explore" — even when the user says "auto-instrument my Java app", "send traces to Grafana", "what env vars do I set", "OTLP endpoint", or "Operator inject" without naming OpenTelemetry.

## Install

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

## From README

OpenTelemetry with Grafana Docs: https://grafana.com/docs/opentelemetry/ Vendor-neutral instrumentation pipeline. Apps speak OTLP → Alloy (or direct) → Grafana Cloud (Mimir / Loki / Tempo / Pyroscope). Backends | Signal | Backend | |--------|---------| | Metrics | Grafana Mimir | | Logs | Grafana Loki | | Traces | Grafana Tempo | | Profiles | Grafana Pyroscope | Prerequisites Grafana Cloud stack OR self-hosted Mimir / Loki / Tempo Cloud OTLP endpoint: https://otlp-gateway- .grafana.net/otlp Basic-auth credentials: numeric instance ID + API token with MetricsPublisher + LogsPublisher + TracesPublisher An app to instrument Common Workflows Authenticate to the Grafana Cloud OTLP endpoint Auto-instrument a Java app + verify Auto-instrument a Python app Add Alloy as a buffering / sampling collector Full Alloy config + tail-sampling block + OTel Collector YAML + K8s Operator references/collector-config.md.

## Links

- HTML page: https://omgskills.com/library/grafana/skills/opentelemetry/
- 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
