Skip to content

Commit 52e15ce

Browse files
committed
Add ASP.NET Core Identity metrics section to diagnostics documentation
1 parent db3bdb6 commit 52e15ce

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

  • src/content/docs/identityserver/diagnostics

src/content/docs/identityserver/diagnostics/otel.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Added in Duende IdentityServer v6.1 and expanded in v7.0
2323
telemetry data (metrics, logs, and traces). This is very useful for analyzing software performance and behavior,
2424
especially in highly distributed systems.
2525

26-
.NET 8 comes with first class support for Open Telemetry. IdentityServer emits traces, metrics and logs.
26+
.NET 8 comes with first class support for Open Telemetry. IdentityServer emits traces, metrics, and logs.
2727

2828
### Metrics
2929

@@ -354,6 +354,31 @@ You can get metrics for the following events:
354354
Refer to the [ASP.NET Core documentation](https://learn.microsoft.com/en-us/aspnet/core/log-mon/metrics/built-in?view=aspnetcore-10.0)
355355
for more information about ASP.NET Core built-in metrics.
356356

357+
### ASP.NET Core Identity metrics
358+
359+
:::tip
360+
Added in .NET 10
361+
:::
362+
363+
When using ASP.NET Identity, metrics are available for key user and sign-in operation metrics.
364+
These let you monitor user management activities like creating users, changing passwords, etc.
365+
It's also possible to track login attempts, sign-ins, sign-outs, and two-factor authentication usage.
366+
367+
The `Microsoft.AspNetCore.Identity` meter provides the following metrics:
368+
369+
* `aspnetcore.identity.user.create.duration`
370+
* `aspnetcore.identity.user.update.duration`
371+
* `aspnetcore.identity.user.delete.duration`
372+
* `aspnetcore.identity.user.check_password_attempts`
373+
* `aspnetcore.identity.user.generated_tokens`
374+
* `aspnetcore.identity.user.verify_token_attempts`
375+
* `aspnetcore.identity.sign_in.authenticate.duration`
376+
* `aspnetcore.identity.sign_in.check_password_attempts`
377+
* `aspnetcore.identity.sign_in.sign_ins`
378+
* `aspnetcore.identity.sign_in.sign_outs`
379+
* `aspnetcore.identity.sign_in.two_factor_clients_remembered`
380+
* `aspnetcore.identity.sign_in.two_factor_clients_forgotten`
381+
357382
## Traces
358383

359384
:::tip

0 commit comments

Comments
 (0)