Skip to content

Commit a971217

Browse files
committed
.NET 10 metrics /1
1 parent f76a1d8 commit a971217

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

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

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,7 @@ As this metric is tracking the connection duration, and ideally SignalR connecti
403403

404404
The `Microsoft.AspNetCore.Authorization` metrics report information about [Authorization attempts](xref:security/authorization/introduction) in ASP.NET Core apps:
405405

406-
<!--- section links here -->
407-
##### Metric: `aspnetcore.authorization.attempts`
406+
#### Metric: `aspnetcore.authorization.attempts`
408407

409408
| Name | Instrument Type | Unit (UCUM) | Description |
410409
| -------- | --------------- | ----------- | -------------- |
@@ -413,6 +412,7 @@ The `Microsoft.AspNetCore.Authorization` metrics report information about [Autho
413412
| Attribute | Type | Description | Examples | Presence |
414413
|---|---|---|---|---|
415414
| `user.is_authenticated` | Boolean | Match result | `success`; `failure` | Always |
415+
| `aspnetcore.authorization.result` | string | The authentication result. | `success` | Always |
416416
| `aspnetcore.authorization.policy` | string | The authorization policy. | `Basic` | Always |
417417
| `error.type` | string | The error message. | `An error occurred in the authorization handler` | Always |
418418

@@ -422,14 +422,13 @@ The `Microsoft.AspNetCore.Authorization` metrics report information about [Autho
422422

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

425-
* [`aspnetcore.authentication.authenticate.duration`](#metric-aspnetcoreauthenticationauthenticateduration)
426-
* [`aspnetcore.authentication.challenges`](#metric-aspnetcoreauthenticationchallenges)
427-
* [`aspnetcore.authentication.forbids`](#metric-aspnetcoreauthenticationforbids)
428-
* [`aspnetcore.authentication.sign_ins`](#metric-aspnetcoreauthenticationsign_ins)
429-
* [`aspnetcore.authentication.sign_outs`](#metric-aspnetcoreauthenticationsign_outs)
425+
- [`aspnetcore.authentication.authenticate.duration`](#metric-aspnetcoreauthenticationauthenticateduration)
426+
- [`aspnetcore.authentication.challenges`](#metric-aspnetcoreauthenticationchallenges)
427+
- [`aspnetcore.authentication.forbids`](#metric-aspnetcoreauthenticationforbids)
428+
- [`aspnetcore.authentication.sign_ins`](#metric-aspnetcoreauthenticationsign_ins)
429+
- [`aspnetcore.authentication.sign_outs`](#metric-aspnetcoreauthenticationsign_outs)
430430

431-
<!--- section links here -->
432-
##### Metric: `aspnetcore.authentication.authenticate.duration`
431+
#### Metric: `aspnetcore.authentication.authenticate.duration`
433432

434433
| Name | Instrument Type | Unit (UCUM) | Description |
435434
| -------- | --------------- | ----------- | -------------- |
@@ -443,7 +442,7 @@ The `Microsoft.AspNetCore.Authentication` metrics report information about [Auth
443442

444443
.
445444

446-
##### Metric: `aspnetcore.authentication.challenges`
445+
#### Metric: `aspnetcore.authentication.challenges`
447446

448447
| Name | Instrument Type | Unit (UCUM) | Description |
449448
| -------- | --------------- | ----------- | -------------- |
@@ -456,7 +455,7 @@ The `Microsoft.AspNetCore.Authentication` metrics report information about [Auth
456455

457456
.
458457

459-
##### Metric: `aspnetcore.authentication.forbids`
458+
#### Metric: `aspnetcore.authentication.forbids`
460459

461460
| Name | Instrument Type | Unit (UCUM) | Description |
462461
| -------- | --------------- | ----------- | -------------- |
@@ -469,7 +468,7 @@ The `Microsoft.AspNetCore.Authentication` metrics report information about [Auth
469468

470469
.
471470

472-
##### Metric: `aspnetcore.authentication.sign_ins`
471+
#### Metric: `aspnetcore.authentication.sign_ins`
473472

474473
| Name | Instrument Type | Unit (UCUM) | Description |
475474
| -------- | --------------- | ----------- | -------------- |
@@ -482,7 +481,7 @@ The `Microsoft.AspNetCore.Authentication` metrics report information about [Auth
482481

483482
.
484483

485-
##### Metric: `aspnetcore.authentication.sign_outs`
484+
#### Metric: `aspnetcore.authentication.sign_outs`
486485

487486
| Name | Instrument Type | Unit (UCUM) | Description |
488487
| -------- | --------------- | ----------- | -------------- |

aspnetcore/log-mon/metrics/metrics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ See [ASP.NET Core metrics](xref:log-mon/metrics/built-in) for a comprehensive li
2626
Using metrics involves the following:
2727

2828
* **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.
29-
* **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.
29+
* **Collection and storage:** 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+
* **Visualization:** A tool that can display the metrics in a human-readable format. For example, [Grafana](https://grafana.com/) and [Prometheus](https://prometheus.io/).
3131
* **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.
3232
* **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.
3333

0 commit comments

Comments
 (0)