Community코딩 & 개발github.com

microsoft/appinsights-instrumentation

Azure Application Insights 계측을 위한 에이전트 스킬입니다. 태스크가 이 스킬의 도메인과 일치할 때 사용하세요.

appinsights-instrumentation란 무엇인가요?

이 스킬은 Microsoft Azure 애플리케이션에 Application Insights 계측을 설정하는 과정을 안내합니다. 개발자가 애플리케이션 성능 모니터링(APM), 사용자 행동 추적, 예외 로깅 및 사용자 지정 메트릭 수집을 손쉽게 통합할 수 있도록 지원합니다. Azure Portal 및 Azure CLI와 같은 도구를 통해 작동하며, .NET, Java, Node.js, Python 등 다양한 언어와 플랫폼을 지원합니다. 이 스킬을 사용하면 애플리케이션의 상태와 성능에 대한 심층적인 인사이트를 얻을 수 있어 문제를 사전에 진단하고 사용자 경험을 개선하는 데 도움이 됩니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/microsoft/azure-skills/tree/main/skills/appinsights-instrumentation

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

appinsights-instrumentation은(는) 무엇을 하나요?

Azure Application Insights 계측을 위한 에이전트 스킬입니다. 태스크가 이 스킬의 도메인과 일치할 때 사용하세요.

설명

이 스킬은 Microsoft Azure에서 호스팅되거나 온프레미스에서 실행되는 애플리케이션에 Application Insights 계측을 설정하는 방법을 설명합니다. Application Insights는 강력한 애플리케이션 성능 관리(APM) 서비스로, 개발자가 애플리케이션의 성능, 사용자 행동 및 예외를 실시간으로 모니터링할 수 있게 해줍니다. 이 스킬은 Azure Portal, Azure CLI, 또는 Azure SDK를 통해 계측 키를 생성하고 애플리케이션에 텔레메트리를 추가하는 과정을 안내합니다.

주요 사용 사례

  • 애플리케이션의 응답 시간 및 오류율 모니터링
  • 사용자 세션 및 페이지 조회수 추적
  • 예외 및 종속성 호출 로깅
  • 사용자 지정 이벤트 및 메트릭을 통한 비즈니스 인사이트 확보

지원 플랫폼

  • .NET (Core 및 Framework)
  • Java
  • Node.js
  • Python
  • JavaScript (웹 브라우저용)

시작하기

필수 조건

  • 활성 Azure 구독
  • Application Insights 리소스에 액세스할 수 있는 권한

Azure CLI를 통한 계측 키 생성

az monitor app-insights component create --app <앱 이름> --location <지역> --resource-group <리소스 그룹> --application-type web

.NET 애플리케이션에 계측 추가

  1. NuGet 패키지 Microsoft.ApplicationInsights.AspNetCore 설치
  2. Startup.cs 파일에서 ConfigureServices 메서드에 다음 코드 추가:
services.AddApplicationInsightsTelemetry();
  1. appsettings.json에 계측 키 설정:
{
  "ApplicationInsights": {
    "InstrumentationKey": "<your-instrumentation-key>"
  }
}

Python 애플리케이션에 계측 추가

  1. pip install opencensus-ext-azure 실행
  2. 코드에 다음 추가:
from opencensus.ext.azure import metrics_exporter
from opencensus.ext.azure.trace_exporter import AzureExporter
from opencensus.trace.samplers import ProbabilitySampler

추가 리소스

참고 사항

계측 키는 민감한 정보이므로 안전하게 보관하고 소스 코드에 하드코딩하지 마십시오. 대신 환경 변수 또는 Azure Key Vault를 사용하는 것이 좋습니다.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

microsoft/airunway-aks-setup

Agent skill 'airunway-aks-setup' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-ai

Agent skill 'azure-ai' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-aigateway

Agent skill 'azure-aigateway' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-app-onboard

Agent skill 'azure-app-onboard' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-app-onboard-prereq

Assess whether source code is ready to deploy to Azure — the check BEFORE infrastructure work. Evaluates build health, app completeness, dependencies and local services, stack compatibility, and deployment feasibility. Answers questions about what your app needs before it can be deployed — frameworks, dependencies, and configuration. Checks whether dependencies are compatible and identifies deployment blockers and unsupported frameworks. WHEN: \"evaluate my repo\", \"is my app ready to deploy\", \"what does my app need to deploy\", \"what do I need before deploying\", \"does my app need\", \"can I ship this to Azure\", \"scan my repo for issues\", \"is this app deployable\", \"check if my app is ready for Azure\", \"do I need a Dockerfile\", \"what's blocking my deployment\", \"are there any blockers\", \"are my dependencies compatible\", \"does Azure support my framework\", \"what needs to change before deploying\", \"check my app configuration\".

microsoft/azure-cloud-migrate

Agent skill 'azure-cloud-migrate' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-compliance

Agent skill 'azure-compliance' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-compute

Agent skill 'azure-compute' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-cost

Agent skill 'azure-cost' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-cost-optimization

Identify Azure cost savings from usage and spending data. USE FOR: optimize Azure costs, reduce Azure spending/expenses, analyze Azure costs, find cost savings, generate cost optimization report, identify orphaned resources to delete, rightsize VMs, reduce waste, optimize Redis costs, optimize storage costs, AKS cost analysis add-on, namespace cost, cost spike, anomaly, budget alert, AKS cost visibility. DO NOT USE FOR: deploying resources (use azure-deploy), general Azure diagnostics (use azure-diagnostics), security issues (use azure-security)

microsoft/azure-deploy

Agent skill 'azure-deploy' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-diagnostics

Agent skill 'azure-diagnostics' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-enterprise-infra-planner

Agent skill 'azure-enterprise-infra-planner' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-hosted-copilot-sdk

Build, deploy, and modify GitHub Copilot SDK apps on Azure. MANDATORY when codebase contains @github/copilot-sdk or CopilotClient in package.json. PREFER OVER azure-prepare when copilot-sdk markers detected. WHEN: copilot SDK, @github/copilot-sdk, copilot-powered app, build copilot app, prepare copilot app, add feature to copilot app, modify copilot app, BYOM, bring your own model, CopilotClient, createSession, sendAndWait, azd init copilot. DO NOT USE FOR: deploying already-prepared copilot-sdk apps (use azure-deploy), general web apps without copilot SDK (use azure-prepare), Copilot Extensions, Foundry agents (use microsoft-foundry).

microsoft/azure-kubernetes

Agent skill 'azure-kubernetes' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-kusto

Agent skill 'azure-kusto' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-messaging

Agent skill 'azure-messaging' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-observability

Azure Observability Services including Azure Monitor, Application Insights, Log Analytics, Alerts, and Workbooks. Provides metrics, APM, distributed tracing, KQL queries, and interactive reports. USE FOR: Azure Monitor, Application Insights, Log Analytics, Alerts, Workbooks, metrics, APM, distributed tracing, KQL queries, interactive reports, observability, monitoring dashboards. DO NOT USE FOR: instrumenting apps with App Insights SDK (use appinsights-instrumentation), querying Kusto/ADX clusters (use azure-kusto), cost analysis (use azure-cost-optimization).

microsoft/azure-postgres

azure-postgres — an installable skill for AI agents.

microsoft/azure-prepare

Agent skill 'azure-prepare' from microsoft/azure-skills. Use when the task matches this skill's domain.

관련 스킬