Skip to content

Commit 8d2e2cc

Browse files
committed
.NET 10 metrics /1
1 parent 6971213 commit 8d2e2cc

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

aspnetcore/log-mon/metrics/built-in/includes/built-in10.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -424,10 +424,10 @@ The `Microsoft.AspNetCore.Authorization` metrics report information about [Autho
424424

425425
The `Microsoft.AspNetCore.Authentication` metrics report information about [Authentication](xref:security/authentication/index) in ASP.NET Core apps:
426426

427-
* [`aspnetcore.authentication.authenticate.duration`](#aspnetcore-authentication-authenticate-duration)
428-
* [`aspnetcore.authentication.challenges`](#aspnetcore-authentication-challenges)
429-
* [`aspnetcore.authentication.forbids`](#aspnetcore-authentication-forbids)
430-
* [`aspnetcore.authentication.sign_ins`](#aspnetcore-authentication-sign-ins)
427+
* [`aspnetcore.authentication.authenticate.duration`](#metric-aspnetcoreauthenticationauthenticateduration)
428+
* [`aspnetcore.authentication.challenges`](#metric-aspnetcoreauthenticationchallenges)
429+
* [`aspnetcore.authentication.forbids`](#metric-aspnetcoreauthenticationforbids)
430+
* [`aspnetcore.authentication.sign_ins`](#metric-aspnetcoreauthenticationsignins)
431431

432432
<!--- section links here -->
433433
##### Metric: `aspnetcore.authentication.authenticate.duration`

aspnetcore/log-mon/metrics/metrics.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,19 @@ Metrics are numerical measurements reported over time. They're typically used to
1919

2020
These metrics can be reported to a monitoring system at regular intervals. Dashboards can be setup to view metrics and alerts created to notify people of problems. If the web service is intended to respond to requests within 400 ms and starts responding in 600 ms, the monitoring system can notify the operations staff that the app response is slower than normal.
2121

22-
> [!TIP]
23-
> See [ASP.NET Core metrics](/dotnet/core/diagnostics/built-in-metrics-aspnetcore) for a comprehensive list of all instruments together with their attributes.
22+
See [ASP.NET Core metrics](xref:log-mon/metrics/built-in) for a comprehensive list of all instruments together with their attributes.
2423

25-
## Using metrics
24+
## Use metrics
2625

27-
There are two parts to using metrics in a .NET app:
26+
Using metrics involves the following:
2827

2928
* **Instrumentation:** Code in .NET libraries takes measurements and associates these measurements with a metric name. .NET and ASP.NET Core include many built-in metrics.
3029
* **Collection:** A .NET app configures named metrics to be transmitted from the app for external storage and analysis. Some tools may perform configuration outside the app using configuration files or a UI tool.
30+
* **Display:** A tool that can display the metrics in a human-readable format. This is often a web-based dashboard that can be customized to show the most important metrics for a specific app.
31+
* **Alerting:** A tool that provides notifications when a metric exceeds a threshold. For example, if the average response time for a web service exceeds 400 ms, an alert can be sent to the operations staff.
32+
* **Analysis:** A tool that can analyze the metrics over time. This is often a web-based dashboard that can be customized to show the most important metrics for a specific app.
3133

32-
Instrumented code can record numeric measurements, but the measurements need to be aggregated, transmitted, and stored to create useful metrics for monitoring. The process of aggregating, transmitting, and storing data is called collection. This tutorial shows several examples of collecting metrics:
34+
Instrumented code can record numeric measurements, but the measurements need to be aggregated, transmitted, and stored to create useful metrics for monitoring. The process of aggregating, transmitting, and storing data is called collection. This tutorial shows several examples of collecting and displaying metrics:
3335

3436
* Populating metrics in [Grafana](https://grafana.com/) with [OpenTelemetry](https://opentelemetry.io/) and [Prometheus](https://prometheus.io/).
3537
* Viewing metrics in real time with [`dotnet-counters`](/dotnet/core/diagnostics/dotnet-counters)

0 commit comments

Comments
 (0)