Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

opentelemetry

Skill by grafana

Instruments apps with OpenTelemetry and sends metrics, logs, traces and profiles to Grafana Cloud or self-hosted Mimir, Loki, Tempo and Pyroscope. It is for developers and platform teams setting up OTLP pipelines.

  • Score 81
  • 329 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install opentelemetry

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/opentelemetry ~/.claude/skills/opentelemetry

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install opentelemetry in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an assistant through instrumenting an application with OpenTelemetry and shipping its telemetry to Grafana. It covers SDK auto-instrumentation for Go, Java (using the Grafana JVM agent), Python, Node.js and .NET, plus Beyla eBPF for zero-code instrumentation. It also explains how to set Basic-auth credentials for the Grafana Cloud OTLP gateway and configure the OTEL_* environment variables.

The skill also covers Alloy and OpenTelemetry Collector pipelines, Kubernetes Operator inject annotations, and head and tail sampling. It includes verification steps such as TraceQL and PromQL checks in Grafana Explore. It is aimed at engineers who are instrumenting a service, switching from Jaeger, Datadog or New Relic, or debugging missing spans.

Written from the project's SKILL.md and checked against it.

What it can do

  • Grafana Cloud OTLP authBuilds the Basic-auth header and sets OTLP endpoint and environment variables for Grafana Cloud.
  • Java auto-instrumentationRuns an app with the Grafana OpenTelemetry Java agent and verifies traces and metrics.
  • Python auto-instrumentationInstalls the OpenTelemetry distro and runs an app with opentelemetry-instrument.
  • Alloy forwardingPoints apps at a local Alloy collector that forwards data to Grafana Cloud.
  • Kubernetes Operator injectionDefines an Instrumentation resource and annotates pods for agent injection.
  • Sampling configurationExplains head sampling with environment variables and tail sampling in a collector.

What you need

  • Grafana Cloud stack or self-hosted Mimir, Loki and Tempo
  • Grafana Cloud API token with MetricsPublisher, LogsPublisher and TracesPublisher roles
  • Numeric Grafana Cloud instance ID
  • An application to instrument
  • Java runtime for the JVM agent
  • Python for opentelemetry-instrument

Try asking

  • Auto-instrument my Java app and send traces to Grafana Cloud
  • Set the OTLP environment variables for Grafana Cloud with Basic auth
  • Show me how to configure tail sampling in Alloy

Good to know

  • Node.js auto-instrumentation can break when bundlers such as @vercel/ncc are used.
  • Python apps under Gunicorn or uWSGI need OpenTelemetry providers reinitialised in a post-fork hook.
  • Tail sampling requires an Alloy or OpenTelemetry Collector tail_sampling processor.
  • Go, Node.js and .NET setup details are in separate reference files.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/grafana-core/opentelemetry/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB
  • references/collector-config.md18 KB
  • references/instrumentation.md21 KB

Alternatives to opentelemetry

All alternatives →
deploy-release-testvercel
94

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.

AAA Skill 144k
deepeval-tracingconfident-ai
94

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.

AAA Skill 20k
azure-container-registry-cligithub
94

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.

AAA Skill 42k
crabbox-appsopenclaw
94

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.

AAA Skill 395k
gke-batch-hpcgoogle
94

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.

AAA Skill 25k
gke-cost-analysisgoogle
94

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.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

opentelemetry: common questions

Does this work with Grafana Cloud?

Yes. The skill covers the Grafana Cloud OTLP gateway endpoint, Basic-auth setup with an instance ID and API token, and sending data to Cloud backends.

What does a 400 response from the OTLP endpoint mean in the auth test?

The source says a 400 means the payload was malformed, which indicates the credentials and endpoint are accepted. A 401 points to auth problems and a 404 to a wrong endpoint.

Which languages are covered for auto-instrumentation?

The source lists Go, Java, Python, Node.js and .NET for SDK instrumentation, and Beyla eBPF for zero-code instrumentation.

How do I install opentelemetry?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is opentelemetry free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is opentelemetry safe to use?

It scores 81 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 opentelemetry?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

opentelemetry Install

Add to stack

Loading.