prometheus-net.AspNetCore.HealthChecks
8.2.1
Prefix Reserved
dotnet add package prometheus-net.AspNetCore.HealthChecks --version 8.2.1
NuGet\Install-Package prometheus-net.AspNetCore.HealthChecks -Version 8.2.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="prometheus-net.AspNetCore.HealthChecks" Version="8.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="prometheus-net.AspNetCore.HealthChecks" Version="8.2.1" />
<PackageReference Include="prometheus-net.AspNetCore.HealthChecks" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add prometheus-net.AspNetCore.HealthChecks --version 8.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: prometheus-net.AspNetCore.HealthChecks, 8.2.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package prometheus-net.AspNetCore.HealthChecks@8.2.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=prometheus-net.AspNetCore.HealthChecks&version=8.2.1
#tool nuget:?package=prometheus-net.AspNetCore.HealthChecks&version=8.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
prometheus-net
This is a .NET library for instrumenting your applications and exporting metrics to Prometheus.
The library targets the following runtimes (and newer):
- .NET Framework 4.6.2
- .NET 6.0
Table of contents
- Best practices and usage
- Quick start
- Installation
- Counters
- Gauges
- Histogram
- Summary
- Measuring operation duration
- Tracking in-progress operations
- Counting exceptions
- Labels
- Static labels
- Exemplars
- Limiting exemplar volume
- When are metrics published?
- Deleting metrics
- ASP.NET Core exporter middleware
- ASP.NET Core HTTP request metrics
- ASP.NET Core gRPC request metrics
- IHttpClientFactory metrics
- ASP.NET Core health check status metrics
- Protecting the metrics endpoint from unauthorized access
- ASP.NET Web API exporter
- Kestrel stand-alone server
- Publishing to Pushgateway
- Publishing to Pushgateway with basic authentication
- Publishing via standalone HTTP handler
- Publishing raw metrics document
- Just-in-time updates
- Suppressing default metrics
- DiagnosticSource integration
- EventCounter integration
- .NET Meters integration
- Benchmarks
- Community projects
Best practices and usage
This library allows you to instrument your code with custom metrics and provides some built-in metric collection integrations for ASP.NET Core.
The documentation here is only a minimal quick start. For detailed guidance on using Prometheus in your solutions, refer to the prometheus-users discussion group. You are also expected to be familiar with the