# Copilot Otel Metrics

Set up GitHub Copilot OpenTelemetry capture: configure the VS Code export settings...

- Repository: https://github.com/microsoft/hve-core (1591 stars)
- Category: DevOps
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add microsoft/hve-core --skill copilot-otel-metrics -g -a claude-code -y`
Codex: `npx skills add microsoft/hve-core --skill copilot-otel-metrics -g -a codex -y`
Cursor: `npx skills add microsoft/hve-core --skill copilot-otel-metrics -g -a cursor -y`
Gemini CLI: `npx skills add microsoft/hve-core --skill copilot-otel-metrics -g -a gemini-cli -y`

## Description

Set up GitHub Copilot OpenTelemetry capture: configure the VS Code export settings, generate a local Grafana stack and dashboard, or generate the Azure collector, infrastructure, and dashboard for an organization.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Copilot OpenTelemetry Metrics

## Goal

Take the user from "I want Copilot telemetry" to telemetry they can query. Do the work for them where doing it is safe and reversible, and walk them through it where it is not.

Done means export is enabled in the settings file that actually resolves, a backend is receiving data, a dashboard exists for that backend, and the user has confirmed data landed by querying the store rather than by trusting an HTTP 200.

## Modes

Modes are independent. A user may run one, several, or all. Local capture and organization capture are separate journeys, not stages of the same one.

| Mode               | Use when the user wants to                          | Consent gate                                               | Reference                                                        |
|--------------------|-----------------------------------------------------|------------------------------------------------------------|------------------------------------------------------------------|
| `local-setup`      | Turn on Copilot's OTel export on this machine       | Show the exact settings diff and write only after approval | [references/local-setup.md](references/local-setup.md)           |
| `local-stack`      | Get a backend on this machine to receive it         | Write the files, then hand over the command; never run it  | [references/local-stack.md](references/local-stack.md)           |
| `org-distribution` | Push OTel settings to a fleet of developers         | Nothing is applied; draft the configuration and explain it | [references/org-distribution.md](references/org-distribution.md) |
| `azure-capture`    | Collect a fleet's telemetry into Azure and chart it | Write the templates, then hand over the deploy commands    | [references/azure-capture.md](references/azure-capture.md)       |

[references/verification.md](references/verification.md) is shared by every mode. Read it before telling anyone their telemetry works.

The rest: https://github.com/microsoft/hve-core/blob/HEAD/.github/skills/experimental/copilot-otel-metrics/SKILL.md
