Skip to content

Commit 03c39d4

Browse files
authored
Merge pull request #251562 from v-jbasden/v-jbasden-move-delete-app-insights-faqs
Moving (or else deleting) the App Insights FAQs in faq.yml to App Insights .md files
2 parents a4d75a2 + 42e4263 commit 03c39d4

22 files changed

+384
-602
lines changed

articles/azure-monitor/app/api-custom-events-metrics.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,6 +1133,8 @@ To determine how long data is kept, see [Data retention and privacy](./data-rete
11331133

11341134
## Frequently asked questions
11351135

1136+
This section provides answers to common questions.
1137+
11361138
### Why am I missing telemetry data?
11371139

11381140
Both [TelemetryChannels](telemetry-channels.md#what-are-telemetry-channels) will lose buffered telemetry if it isn't flushed before an application shuts down.
@@ -1155,7 +1157,21 @@ The Application Insights SDK isn't compatible with autoinstrumentation. If autoi
11551157

11561158
Turn off autoinstrumentation in the Azure portal on the Application Insights tab of the App Service page or set <code class="notranslate">ApplicationInsightsAgent_EXTENSION_VERSION</code> to <code class="notranslate">disabled</code>.
11571159

1160+
### Why are the counts in Search and Metrics charts unequal?
1161+
1162+
[Sampling](./sampling.md) reduces the number of telemetry items (like requests and custom events) that are sent from your app to the portal. In Search, you see the number of items received. In metric charts that display a count of events, you see the number of original events that occurred.
1163+
1164+
Each item that's transmitted carries an `itemCount` property that shows how many original events that item represents. To observe sampling in operation, you can run this query in Log Analytics:
1165+
1166+
```
1167+
requests | summarize original_events = sum(itemCount), transmitted_events = count()
1168+
```
1169+
1170+
### How can I set an alert on an event?
1171+
1172+
Azure alerts are only on metrics. Create a custom metric that crosses a value threshold whenever your event occurs. Then set an alert on the metric. You get a notification whenever the metric crosses the threshold in either direction. You won't get a notification until the first crossing, no matter whether the initial value is high or low. There's always a latency of a few minutes.
1173+
1174+
11581175
## <a name="next"></a>Next steps
11591176

11601177
* [Search events and logs](./diagnostic-search.md)
1161-
* [Troubleshooting](../faq.yml)

articles/azure-monitor/app/api-filtering-sampling.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,5 +563,4 @@ What's the difference between telemetry processors and telemetry initializers?
563563
## <a name="next"></a>Next steps
564564
* [Search events and logs](./diagnostic-search.md)
565565
* [sampling](./sampling.md)
566-
* [Troubleshooting](../faq.yml)
567566

articles/azure-monitor/app/app-insights-overview.md

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,73 @@ We're constantly assessing opportunities to expand our support for other languag
170170

171171
## Frequently asked questions
172172

173-
Review [frequently asked questions](../faq.yml).
174-
173+
This section provides answers to common questions.
174+
175+
### What telemetry does Application Insights collect?
176+
177+
From server web apps:
178+
179+
* HTTP requests.
180+
* [Dependencies](./asp-net-dependencies.md). Calls to SQL databases, HTTP calls to external services, Azure Cosmos DB, Azure Table Storage, Azure Blob Storage, and Azure Queue Storage.
181+
* [Exceptions](./asp-net-exceptions.md) and stack traces.
182+
* [Performance counters](./performance-counters.md): If you use the [Azure Monitor Application Insights agent](./application-insights-asp-net-agent.md), [Azure monitoring for VMs or virtual machine scale sets](./azure-vm-vmss-apps.md), or the [Application Insights collectd writer](/previous-versions/azure/azure-monitor/app/deprecated-java-2x#collectd-linux-performance-metrics-in-application-insights-deprecated).
183+
* [Custom events and metrics](./api-custom-events-metrics.md) that you code.
184+
* [Trace logs](./asp-net-trace-logs.md) if you configure the appropriate collector.
185+
186+
From [client webpages](./javascript-sdk.md):
187+
188+
* Uncaught exceptions in your app, including information on
189+
* Stack trace
190+
* Exception details and message accompanying the error
191+
* Line & column number of error
192+
* URL where error was raised
193+
* Network Dependency Requests made by your app XHR and Fetch (fetch collection is disabled by default) requests, include information on:
194+
* Url of dependency source
195+
* Command & Method used to request the dependency
196+
* Duration of the request
197+
* Result code and success status of the request
198+
* ID (if any) of user making the request
199+
* Correlation context (if any) where request is made
200+
* User information (for example, Location, network, IP)
201+
* Device information (for example, Browser, OS, version, language, model)
202+
* Session information
203+
204+
> [!Note]
205+
> For some applications, such as single-page applications (SPAs), the duration may not be recorded and will default to 0.
206+
207+
For more information, see [Data collection, retention, and storage in Application Insights](./data-retention-privacy.md).
208+
209+
From other sources, if you configure them:
210+
211+
* [Azure diagnostics](../agents/diagnostics-extension-to-application-insights.md)
212+
* [Import to Log Analytics](../logs/data-collector-api.md)
213+
* [Log Analytics](../logs/data-collector-api.md)
214+
* [Logstash](../logs/data-collector-api.md)
215+
216+
### How can I manage Application Insights resources with PowerShell?
217+
218+
You can [write PowerShell scripts](./powershell.md) by using Azure Resource Monitor to:
219+
220+
* Create and update Application Insights resources.
221+
* Set the pricing plan.
222+
* Get the instrumentation key.
223+
* Add a metric alert.
224+
* Add an availability test.
225+
226+
You can't set up a metrics explorer report or set up continuous export.
227+
228+
### How can I query Application Insights telemetery?
229+
230+
Use the [REST API](/rest/api/application-insights/) to run [Log Analytics](../logs/log-query-overview.md) queries.
231+
232+
### Can I send telemetry to the Application Insights portal?
233+
234+
We recommend that you use our SDKs and use the [SDK API](./api-custom-events-metrics.md). There are variants of the SDK for various [platforms](./app-insights-overview.md#supported-languages). These SDKs handle processes like buffering, compression, throttling, and retries. However, the [ingestion schema](https://github.com/microsoft/ApplicationInsights-dotnet/tree/master/BASE/Schema/PublicSchema) and [endpoint protocol](https://github.com/MohanGsk/ApplicationInsights-Home/blob/master/EndpointSpecs/ENDPOINT-PROTOCOL.md) are public.
235+
236+
### How long does it take for telemetry to be collected?
237+
238+
Most Application Insights data has a latency of under 5 minutes. Some data can take longer, which is typical for larger log files. See the [Application Insights service-level agreement](https://azure.microsoft.com/support/legal/sla/application-insights/v1_2/).
239+
175240
## Troubleshooting
176241

177242
Review dedicated [troubleshooting articles](/troubleshoot/azure/azure-monitor/welcome-azure-monitor) for Application Insights.

articles/azure-monitor/app/application-insights-asp-net-agent.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ When you monitor a computer on your private intranet, you'll need to route HTTP
310310
The PowerShell commands to download and install Az.ApplicationMonitor from the PowerShell Gallery support a `-Proxy` parameter.
311311
Review the preceding instructions when you write your installation scripts.
312312
313-
The Application Insights SDK will need to send your app's telemetry to Microsoft. We recommend that you configure proxy settings for your app in your web.config file. For more information, see [Application Insights FAQ: Proxy passthrough](../faq.yml).
313+
The Application Insights SDK will need to send your app's telemetry to Microsoft. We recommend that you configure proxy settings for your app in your web.config file. For more information, see [How do I achieve proxy passthrough?](#how-do-i-achieve-proxy-passthrough).
314314
315315
316316
### Enable monitoring
@@ -1005,6 +1005,21 @@ Each of these options is described in the [detailed instructions](?tabs=detailed
10051005
union * | summarize count() by cloud_RoleName, cloud_RoleInstance
10061006
```
10071007
1008+
### How do I achieve proxy passthrough?
1009+
1010+
To achieve proxy passthrough, configure a machine-level proxy or an application-level proxy.
1011+
See [DefaultProxy](/dotnet/framework/configure-apps/file-schema/network/defaultproxy-element-network-settings).
1012+
1013+
Example Web.config:
1014+
1015+
```xml
1016+
<system.net>
1017+
<defaultProxy>
1018+
<proxy proxyaddress="http://xx.xx.xx.xx:yyyy" bypassonlocal="true"/>
1019+
</defaultProxy>
1020+
</system.net>
1021+
```
1022+
10081023
## Troubleshooting
10091024

10101025
See the dedicated [troubleshooting article](/troubleshoot/azure/azure-monitor/app-insights/status-monitor-v2-troubleshoot).

articles/azure-monitor/app/availability-overview.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ You can create up to 100 availability tests per Application Insights resource.
3434

3535
See the dedicated [troubleshooting article](/troubleshoot/azure/azure-monitor/app-insights/troubleshoot-availability).
3636

37+
## Frequently asked questions
38+
39+
This section provides answers to common questions.
40+
41+
### Can I run Availability web tests on an intranet server?
42+
43+
Our [web tests](/previous-versions/azure/azure-monitor/app/monitor-web-app-availability) run on points of presence that are distributed around the globe. There are two solutions:
44+
45+
* **Firewall door**: Allow requests to your server from [the long and changeable list of web test agents](./ip-addresses.md).
46+
* **Custom code**: Write your own code to send periodic requests to your server from inside your intranet. You could run Visual Studio web tests for this purpose. The tester could send the results to Application Insights by using the `TrackAvailability()` API.
47+
3748
## Next steps
3849

3950
* [Availability alerts](availability-alerts.md)

articles/azure-monitor/app/azure-web-apps.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,30 @@ To find which version of the extension you're currently using, go to `https://<y
139139

140140
- Fix for incomplete HTML response for ASP.NET Core apps.
141141

142+
## Frequently asked questions
143+
144+
This section provides answers to common questions.
145+
146+
### What does Application Insights modify in my project?
147+
148+
The details depend on the type of project. For a web application:
149+
150+
* Adds these files to your project:
151+
* ApplicationInsights.config
152+
* ai.js
153+
* Installs these NuGet packages:
154+
* Application Insights API: The core API
155+
* Application Insights API for Web Applications: Used to send telemetry from the server
156+
* Application Insights API for JavaScript Applications: Used to send telemetry from the client
157+
* The packages include these assemblies:
158+
* Microsoft.ApplicationInsights
159+
* Microsoft.ApplicationInsights.Platform
160+
* Inserts items into:
161+
* Web.config
162+
* packages.config
163+
* (For new projects only, you [add Application Insights to an existing project manually](./app-insights-overview.md).) Inserts snippets into the client and server code to initialize them with the Application Insights resource ID. For example, in an MVC app, code is inserted into the main page *Views/Shared/\_Layout.cshtml*.
164+
165+
142166
## Next steps
143167

144168
Learn how to enable autoinstrumentation application monitoring for your [.NET Core](./azure-web-apps-net-core.md), [.NET](./azure-web-apps-net.md), [Java](./azure-web-apps-java.md), or [Nodejs](./azure-web-apps-nodejs.md) application running on App Service.

articles/azure-monitor/app/data-model-complete.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,16 @@ This field represents the node name used for billing purposes. Use it to overrid
411411

412412
**Maximum length:** 256
413413

414+
## Frequently asked questions
415+
416+
This section provides answers to common questions.
417+
418+
### How would I measure the impact of a monitoring campaign?
419+
420+
PageView Telemetry includes URL and you could parse the UTM parameter using a regex function in Kusto.
421+
422+
Occasionally, this data might be missing or inaccurate if the user or enterprise disables sending User Agent in browser settings. The [UA Parser regexes](https://github.com/ua-parser/uap-core/blob/master/regexes.yaml) might not include all device information. Or Application Insights might not have adopted the latest updates.
423+
414424
## Next steps
415425

416426
Learn how to use the [Application Insights API for custom events and metrics](./api-custom-events-metrics.md), including:

articles/azure-monitor/app/data-retention-privacy.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,22 @@ You can [switch off some of the data by editing ApplicationInsights.config][conf
321321

322322
No. Data is read-only and can only be deleted via the purge functionality. To learn more, see [Guidance for personal data stored in Log Analytics and Application Insights](../logs/personal-data-mgmt.md#delete).
323323

324+
## Frequently asked questions
325+
326+
This section provides answers to common questions.
327+
328+
### What happens to Application Insight telemetry when a server or device loses connection with Azure?
329+
330+
All of our SDKs, including the web SDK, include *reliable transport* or *robust transport*. When the server or device loses connection with Azure, telemetry is [stored locally on the file system](./data-retention-privacy.md#does-the-sdk-create-temporary-local-storage) (Server SDKs) or in HTML5 Session Storage (Web SDK). The SDK periodically retries to send this telemetry until our ingestion service considers it "stale" (48 hours for logs, 30 minutes for metrics). Stale telemetry is dropped. In some cases, such as when local storage is full, retry won't occur.
331+
332+
### Is personal data sent in the telemetry?
333+
334+
You can send personal data if your code sends such data. It can also happen if variables in stack traces include personal data. Your development team should conduct risk assessments to ensure that personal data is properly handled. Learn more about [data retention and privacy](./data-retention-privacy.md).
335+
336+
*All* octets of the client web address are always set to 0 after the geolocation attributes are looked up.
337+
338+
The [Application Insights JavaScript SDK](./javascript.md) doesn't include any personal data in its autocompletion, by default. However, some personal data used in your application might be picked up by the SDK (for example, full names in `window.title` or account IDs in XHR URL query parameters). For custom personal data masking, add a [telemetry initializer](./api-filtering-sampling.md#javascript-web-applications).
339+
324340
<!--Link references-->
325341

326342
[api]: ./api-custom-events-metrics.md

articles/azure-monitor/app/diagnostic-search.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,3 @@ The URL query strings are not logged by Azure Functions.
152152
* [Write complex queries in Analytics](../logs/log-analytics-tutorial.md)
153153
* [Send logs and custom telemetry to Application Insights](./asp-net-trace-logs.md)
154154
* [Availability overview](availability-overview.md)
155-
* [Troubleshooting](../faq.yml)

articles/azure-monitor/app/ilogger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public class MyController : ApiController
304304
```
305305

306306
> [!NOTE]
307-
> If you use the `Microsoft.ApplicationInsights.AspNetCore` package to enable Application Insights, modify this code to get `TelemetryClient` directly in the constructor. For an example, see [this FAQ](../faq.yml).
307+
> If you use the `Microsoft.ApplicationInsights.AspNetCore` package to enable Application Insights, modify this code to get `TelemetryClient` directly in the constructor.
308308
309309
### I don't have the SDK installed, and I use the Azure Web Apps extension to enable Application Insights for my ASP.NET Core applications. How do I use the new provider?
310310

0 commit comments

Comments
 (0)