Skip to content

Add information about when health check metrics are emitted #40426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/core/diagnostics/built-in-metrics-diagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ The `Microsoft.Extensions.Diagnostics.HealthChecks` metrics report health check
- [`dotnet.health_check.reports`](#metric-dotnethealth_checkreports)
- [`dotnet.health_check.unhealthy_checks`](#metric-dotnethealth_checkunhealthy_checks)

You can enable these metrics by calling the <xref:Microsoft.Extensions.DependencyInjection.CommonHealthChecksExtensions.AddTelemetryHealthCheckPublisher%2A> extension method. These metrics can only be enabled for push-based metrics and aren't available for pull-based metrics.

##### Metric: `dotnet.health_check.reports`

| Name | Instrument Type | Unit (UCUM) | Description |
Expand Down