Skip to content

Commit 437aded

Browse files
committed
PR comments
1 parent 1765d59 commit 437aded

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

articles/azure-monitor/app/asp-net-core.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ Support for [performance counters](https://azure.microsoft.com/documentation/art
146146

147147
### ILogger logs
148148

149-
[ILogger logs](https://docs.microsoft.com/azure/azure-monitor/app/ilogger) of severity `Warning` or greater are automatically captured in SDK versions 2.7.0-beta3 and later.
149+
Logs emitted via `ILogger` of severity `Warning` or greater are automatically captured. Follow [ILogger docs](ilogger.md#control-logging-level) to customize which log levels are captured by Application Insights.
150150

151151
### Live Metrics
152152

153-
It might take a few minutes before telemetry starts appearing in the portal. To quickly make sure everything is working, it's best to use [Live Metrics](https://docs.microsoft.com/azure/application-insights/app-insights-live-stream) when you make requests to the running application.
153+
[Live Metrics](https://docs.microsoft.com/azure/application-insights/app-insights-live-stream) can be used to quickly verify if Application Insights is setup correctly. While it might take a few minutes before telemetry starts appearing in the portal and analytics, Live Metrics would show CPU usage of the running process in near real-time. It can also show other telemetry like Requests, Dependencies, Traces etc.
154154

155155
## Enable client-side telemetry for web applications
156156

articles/azure-monitor/app/eventcounters.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ While users can publish any custom `EventCounters` to meet their needs, the .NET
2121

2222
## Using Application Insights to collect EventCounters
2323

24-
Application Insights supports collecting `EventCounters` with its `EventCounterCollectionModule`, which is part of the newly released nuget package [Microsoft.ApplicationInsights.EventCounterCollector](https://www.nuget.org/packages/Microsoft.ApplicationInsights.EventCounterCollector). `EventCounterCollectionModule` is automatically enabled when using either [AspNetCore](asp-net-core.md) or [WorkerService](worker-service.md) instructions. `EventCounterCollectionModule` collects counters with a non-configurable collection frequency of 60 seconds. There are no special permissions required to collect EventCounters.
24+
Application Insights supports collecting `EventCounters` with its `EventCounterCollectionModule`, which is part of the newly released nuget package [Microsoft.ApplicationInsights.EventCounterCollector](https://www.nuget.org/packages/Microsoft.ApplicationInsights.EventCounterCollector). `EventCounterCollectionModule` is automatically enabled when using either [AspNetCore](asp-net-core.md) or [WorkerService](worker-service.md). `EventCounterCollectionModule` collects counters with a non-configurable collection frequency of 60 seconds. There are no special permissions required to collect EventCounters.
2525

2626
## Default counters collected
2727

@@ -53,11 +53,12 @@ For apps running in .NET Core 3.0, the following set of counters are collected a
5353
|`Microsoft.AspNetCore.Hosting` | `current-requests` |
5454
|`Microsoft.AspNetCore.Hosting` | `failed-requests` |
5555

56-
Note: Counters of category Microsoft.AspNetCore.Hosting are only added in Asp.Net Core Applications.
56+
[!NOTE]
57+
Counters of category Microsoft.AspNetCore.Hosting are only added in Asp.Net Core Applications.
5758

5859
## Customizing counters to be collected
5960

60-
The following example shows how to add/remove counters. This customization would be done in `ConfigureServices` of your application after application insights telemetry collection is enabled using either `AddApplicationInsightsTelemetry()` or `AddApplicationInsightsWorkerService()`. Following is an example code from an Asp.Net Core application. For other type of applications, refer to [this](worker-service.md#configuring-or-removing-default-telemetrymodules) document.
61+
The following example shows how to add/remove counters. This customization would be done in the `ConfigureServices` method of your application after Application Insights telemetry collection is enabled using either `AddApplicationInsightsTelemetry()` or `AddApplicationInsightsWorkerService()`. Following is an example code from an ASP.NET Core application. For other type of applications, refer to [this](worker-service.md#configuring-or-removing-default-telemetrymodules) document.
6162

6263
```csharp
6364
using Microsoft.ApplicationInsights.Extensibility.EventCounterCollector;
@@ -95,7 +96,7 @@ The following example shows how to add/remove counters. This customization would
9596

9697
To view EventCounter metrics in [Metric Explorer](https://docs.microsoft.com/azure/azure-monitor/platform/metrics-charts), select Application Insights resource, and chose Log-based metrics as metric namespace. Then EventCounter metrics get displayed under PerformanceCounter category.
9798

98-
![Event counters reported in Application Insights](./media/event-counters/meticsexplorer-counterlist.png)
99+
![Event counters reported in Application Insights](./media/event-counters/metrics-explorer-counter-list.png)
99100

100101
## Event counters in Analytics
101102

@@ -126,6 +127,12 @@ Like other telemetry, **performanceCounters** also has a column `cloud_RoleInsta
126127
## Alerts
127128
Like other metrics, you can [set an alert](../../azure-monitor/app/alerts.md) to warn you if an event counter goes outside a limit you specify. Open the Alerts pane and click Add Alert.
128129

130+
## Frequently asked questions
131+
132+
### Can I see EventCounters in Live Metrics ?
133+
134+
No. Live Metrics do not show EventCounters as of today. Use Metric Explorer or Analytics to see the telemetry.
135+
129136
## <a name="next"></a>Next steps
130137

131138
* [Dependency tracking](../../azure-monitor/app/asp-net-dependencies.md)

0 commit comments

Comments
 (0)