Перейти к содержанию
Skillpedia
Деплой и облако (DevOps)40k · #7052

appinsights-instrumentation

Что он делает

Этот инструмент помогает подключить систему мониторинга к вашему веб-приложению. Он отправляет данные о производительности и состоянии приложения в Azure App Insights, чтобы вы могли видеть, как оно работает.

Когда использовать

  • ✓Когда вы хотите следить за производительностью своего сайта.
  • ✓Когда нужно понять, корректно ли работает ваше приложение.
  • ✓Когда вы хотите получать оповещения о проблемах в приложении.

Ссылка на скилл

https://github.com/github/awesome-copilot/blob/main/skills/appinsights-instrumentation/SKILL.md

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/github/awesome-copilot/blob/main/skills/appinsights-instrumentation/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Добавь мониторинг в мое веб-приложение на Node.js, размещенное в Azure.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Инструмент сначала определяет тип вашего приложения и место его размещения. Затем он может настроить мониторинг автоматически или подсказать, как сделать это вручную: добавив мониторинг в код приложения или используя инструменты Azure.

Технический текст (оригинальный SKILL.md)

Оригинальный текст автора на английском, прямо с GitHub.

AppInsights instrumentation

This skill enables sending telemetry data of a webapp to Azure App Insights for better observability of the app's health.

When to use this skill

Use this skill when the user wants to enable telemetry for their webapp.

Prerequisites

The app in the workspace must be one of these kinds

  • An ASP.NET Core app hosted in Azure
  • A Node.js app hosted in Azure

Guidelines

Collect context information

Find out the (programming language, application framework, hosting) tuple of the application the user is trying to add telemetry support in. This determines how the application can be instrumented. Read the source code to make an educated guess. Confirm with the user on anything you don't know. You must always ask the user where the application is hosted (e.g. on a personal computer, in an Azure App Service as code, in an Azure App Service as container, in an Azure Container App, etc.).

Prefer auto-instrument if possible

If the app is a C# ASP.NET Core app hosted in Azure App Service, use AUTO guide to help user auto-instrument the app.

Manually instrument

Manually instrument the app by creating the AppInsights resource and update the app's code.

Create AppInsights resource

Use one of the following options that fits the environment.

  • Add AppInsights to existing Bicep template. See examples/appinsights.bicep for what to add. This is the best option if there are existing Bicep template files in the workspace.
  • Use Azure CLI. See scripts/appinsights.ps1 for what Azure CLI command to execute to create the App Insights resource.

No matter which option you choose, recommend the user to create the App Insights resource in a meaningful resource group that makes managing resources easier. A good candidate will be the same resource group that contains the resources for the hosted app in Azure.

Modify application code

  • If the app is an ASP.NET Core app, see ASPNETCORE guide for how to modify the C# code.
  • If the app is a Node.js app, see NODEJS guide for how to modify the JavaScript/TypeScript code.
  • If the app is a Python app, see PYTHON guide for how to modify the Python code.
Частые вопросы

Что такое Azure App Insights?

Это сервис Azure, который собирает телеметрию (данные о производительности и использовании) из ваших приложений, помогая следить за их состоянием и находить проблемы.

Обязательно ли размещать приложение в Azure?

Да, эта функция предназначена для веб-приложений, которые уже размещены в Azure, например ASP.NET Core или Node.js.

Как узнать, на каком языке написано мое приложение?

Инструмент постарается определить это сам, но иногда может понадобиться указать вручную, если приложение написано на C# (для ASP.NET Core), JavaScript/TypeScript (для Node.js) или Python.

Подробности

Оригинальное описание автора

Instrument a webapp to send useful telemetry data to Azure App Insights

repo: github/awesome-copilot

Популярность

Звёзды на GitHub
40k
Место в рейтинге
#7052
Лицензия
MIT
Обновлён
15.10.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы