You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/log-mon/metrics/built-in/includes/built-in10.md
+94Lines changed: 94 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -400,4 +400,98 @@ As this metric is tracking the connection duration, and ideally SignalR connecti
400
400
|`signalr.transport`| string |[SignalR transport type](https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md)|`web_sockets`; `long_polling`| Always |
401
401
402
402
.
403
+
404
+
## `Microsoft.AspNetCore.Authorization`
405
+
406
+
The `Microsoft.AspNetCore.Authorization` metrics report information about [Authorization attempts](xref:security/authorization/introduction) in ASP.NET Core apps:
407
+
408
+
<!--- section links here -->
409
+
##### Metric: `aspnetcore.authorization.attempts`
410
+
411
+
| Name | Instrument Type | Unit (UCUM) | Description |
|`aspnetcore.authorization.attempts`<!--(https://opentelemetry.io/docs/specs/semconv/dotnet/dotnet-aspnetcore-metrics/)-->| Counter |`{request}`| The total number of requests for which authorization was attempted. |
|`aspnetcore.authentication.authenticate.duration`<!--(https://opentelemetry.io/docs/specs/semconv/dotnet/dotnet-aspnetcore-metrics/)-->| Histogram |`s`| The authentication duration for a request. |
|`aspnetcore.authentication.challenges`<!--(https://opentelemetry.io/docs/specs/semconv/dotnet/dotnet-aspnetcore-metrics/)-->| Counter |`{request}`| The total number of times a scheme is challenged. |
|`aspnetcore.authentication.forbids`<!--(https://opentelemetry.io/docs/specs/semconv/dotnet/dotnet-aspnetcore-metrics/)-->| Counter |`{request}`| The total number of times an authenticated user attempts to access a resource they are not permitted to access. |
|`aspnetcore.authentication.sign_ins`<!--(https://opentelemetry.io/docs/specs/semconv/dotnet/dotnet-aspnetcore-metrics/)-->| Counter |`{request}`| The total number of times a principal is signed in. |
|`aspnetcore.authentication.sign_outs`<!--(https://opentelemetry.io/docs/specs/semconv/dotnet/dotnet-aspnetcore-metrics/)-->| Counter |`{request}`| The total number of times a scheme is challenged. |
0 commit comments