Skip to content

Commit 762fb1e

Browse files
Apply suggestions from code review
Suggested udpated from guardrex Co-authored-by: Luke Latham <[email protected]>
1 parent 1abecf1 commit 762fb1e

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

aspnetcore/log-mon/metrics/metrics.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -267,17 +267,17 @@ The proceeding test:
267267

268268
## ASP.NET Core Identity metrics
269269

270-
ASP.NET Core Identity observability has been improved in .NET 10 with metrics. These metrics help you monitor user management activities and authentication processes.
270+
ASP.NET Core Identity observability help you monitor user management activities and authentication processes.
271271

272-
The metrics are in the `Microsoft.AspNetCore.Identity` meter and include:
272+
The metrics are in the `Microsoft.AspNetCore.Identity` meter and are described in the following sections.
273273

274274
### User management metrics
275275

276-
* `aspnetcore.identity.user.create.duration` - Measures the duration of user creation operations
276+
* `aspnetcore.identity.user.create.duration` measures the duration of user creation operations.
277277
* `aspnetcore.identity.user.update.duration` - Measures the duration of user update operations
278278
* `aspnetcore.identity.user.delete.duration` - Measures the duration of user deletion operations
279279
* `aspnetcore.identity.user.check_password_attempts` - Counts password verification attempts
280-
* `aspnetcore.identity.user.generated_tokens` - Counts tokens generated for users (like password reset tokens)
280+
* `aspnetcore.identity.user.generated_tokens` counts tokens generated for users , such as password reset tokens.
281281
* `aspnetcore.identity.user.verify_token_attempts` - Counts token verification attempts
282282

283283
### Authentication metrics
@@ -291,14 +291,14 @@ The metrics are in the `Microsoft.AspNetCore.Identity` meter and include:
291291

292292
These metrics can be used to:
293293

294-
* Monitor user registration and management
295-
* Track authentication patterns and potential security issues
296-
* Measure performance of Identity operations
297-
* Observe two-factor authentication usage
294+
* Monitor user registration and management.
295+
* Track authentication patterns and potential security issues.
296+
* Measure performance of Identity operations.
297+
* Observe two-factor authentication usage.
298298

299299
### Viewing Identity metrics
300300

301-
You can view these metrics using `dotnet-counters` to monitor them in real-time, or export them to Prometheus and visualize them in Grafana using the techniques described earlier in this article.
301+
You can view these metrics using `dotnet-counters` to monitor them in real-time or export them to Prometheus and visualize them in Grafana using the techniques described earlier in this article.
302302

303303
For example, to monitor all Identity metrics with `dotnet-counters`:
304304

aspnetcore/security/authentication/identity.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,15 +204,17 @@ The template-generated app doesn't use [authorization](xref:security/authorizati
204204
For more information on `IdentityOptions`, see <xref:Microsoft.AspNetCore.Identity.IdentityOptions> and [Application Startup](xref:fundamentals/startup).
205205

206206
:::moniker-end
207+
207208
:::moniker range=">= aspnetcore-10.0"
208209

209210
## ASP.NET Core Identity metrics
210211

211-
ASP.NET Core Identity metrics provide monitoring capabilities for user management and authentication processes. These metrics help you detect unusual sign-in patterns that might indicate security threats, track the performance of identity operations, and understand how users interact with authentication features such as two-factor authentication. This observability is particularly valuable for applications with strict security requirements or those experiencing high authentication traffic. The ASP.NET Core Identity metrics were introduced in .NET 10.
212+
ASP.NET Core Identity metrics provide monitoring capabilities for user management and authentication processes. These metrics help you detect unusual sign-in patterns that might indicate security threats, track the performance of identity operations, and understand how users interact with authentication features, such as two-factor authentication. This observability is particularly valuable for apps with strict security requirements or those experiencing high authentication traffic.
212213

213214
For complete details on available metrics and how to use them, see <xref:log-mon/metrics/metrics#aspnet-core-identity-metrics>.
214215

215216
:::moniker-end
217+
216218
:::moniker range=">= aspnetcore-8.0"
217219

218220
<!-- Start here for .NET 6 -->

0 commit comments

Comments
 (0)