> For the complete documentation index, see [llms.txt](https://docs.scepman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scepman.com/pt/configuracao-do-azure/application-insights.md).

# Application Insights

{% hint style="info" %}
Recomendamos ativar o Application Insights para receber uma representação gráfica de dados sobre a sua instância SCEPman, como pedidos falhados, disponibilidade e tempo de resposta do servidor ao longo de uma determinada duração.
{% endhint %}

Para ativar o Application Insights no seu Serviço de Aplicações, siga estas instruções:

{% stepper %}
{% step %}

### Navegue até ao seu Serviço de Aplicações SCEPman

Azure > App Services > o seu Serviço de Aplicações SCEPman (nome predefinido `app-scepman-<suffix>`)
{% endstep %}

{% step %}

### Selecione e ative o Application Insights

No menu à esquerda, expanda Monitoring > Application Insights

<figure><img src="https://3802289327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FjkDubNnOsNUawZWG54qX%2Fimage.png?alt=media&amp;token=51482db8-8051-4039-9eea-5494667a5cab" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Criar um novo recurso do Application Insights

<figure><img src="https://3802289327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FVZVSTYffAHwaItmhAy1j%2Fimage.png?alt=media&amp;token=86903a80-8ce2-4944-be68-911ccab872cb" alt=""><figcaption></figcaption></figure>

#### Configurar instrumentação

Em **Instrumente a sua aplicação**, selecione o separador **.NET Core (Linux)** ou **.NET (Windows)** e defina:

* **Nível de recolha:** Recomendado
* **Profiler:** Ativado (predefinição)
* **Depurador de instantâneos:** Ativado (predefinição)
* **Mostrar variáveis locais para exceções:** Desativado

{% hint style="warning" %}
Manter **Mostrar variáveis locais** desativado. Atrasará o arranque do SCEPman e pode causar mensagens de erro.
{% endhint %}

<figure><img src="https://3802289327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FMCAl5cIcXDiLrFSww3GY%2Fimage.png?alt=media&amp;token=5da8e611-eacc-4852-8a8f-c0128bfb9dc2" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Aplicar definições

Agora está pronto para usar o Application Insights com o SCEPman!
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.scepman.com/pt/configuracao-do-azure/application-insights.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
