OpenTelemetry.Instrumentation.Process 1.14.0-beta.2

Prefix Reserved
This is a prerelease version of OpenTelemetry.Instrumentation.Process.
dotnet add package OpenTelemetry.Instrumentation.Process --version 1.14.0-beta.2
                    
NuGet\Install-Package OpenTelemetry.Instrumentation.Process -Version 1.14.0-beta.2
                    
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="OpenTelemetry.Instrumentation.Process" Version="1.14.0-beta.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OpenTelemetry.Instrumentation.Process" Version="1.14.0-beta.2" />
                    
Directory.Packages.props
<PackageReference Include="OpenTelemetry.Instrumentation.Process" />
                    
Project file
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 OpenTelemetry.Instrumentation.Process --version 1.14.0-beta.2
                    
#r "nuget: OpenTelemetry.Instrumentation.Process, 1.14.0-beta.2"
                    
#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 OpenTelemetry.Instrumentation.Process@1.14.0-beta.2
                    
#: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=OpenTelemetry.Instrumentation.Process&version=1.14.0-beta.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=OpenTelemetry.Instrumentation.Process&version=1.14.0-beta.2&prerelease
                    
Install as a Cake Tool

Process Instrumentation for OpenTelemetry .NET

Status
Stability Beta
Code Owners @Yun-Ting

NuGet version badge NuGet download count badge codecov.io

This is an Instrumentation Library, which instruments .NET and collects telemetry about process behavior.

The process metric instruments being implemented are following OpenTelemetry metrics semantic conventions.

Steps to enable OpenTelemetry.Instrumentation.Process

Step 1: Install package

Add a reference to OpenTelemetry.Instrumentation.Process package.

dotnet add package --prerelease OpenTelemetry.Instrumentation.Process

Add a reference to OpenTelemetry.Exporter.Prometheus.HttpListener package.

dotnet add package --prerelease OpenTelemetry.Exporter.Prometheus.HttpListener

Step 2: Enable Process instrumentation

Process instrumentation should be enabled at application startup using the AddProcessInstrumentation extension on MeterProviderBuilder:

using var meterProvider = Sdk.CreateMeterProviderBuilder()
    .AddProcessInstrumentation()
    .AddPrometheusHttpListener()
    .Build();

Refer to Program.cs for a complete demo. This examples sets up the OpenTelemetry Prometheus exporter, which requires adding the package OpenTelemetry.Exporter.Prometheus.HttpListener to the application.

Additionally, this document shows how to use Prometheus and Grafana to build a dashboard for your application. This is the Grafana dashboard template which has all the metrics currently supported by this package; plus an additional aggregated metric CPU utilization calculated with the raw metrics, CPU time and CPU count.

Please follow the instructions in this document to import a Grafana dashboard by uploading the JSON template file.

Metrics

process.memory.usage

The amount of physical memory allocated for this process.

Units Instrument Type Value Type
By ObservableUpDownCounter Double

The API used to retrieve the value is:

  • Process.WorkingSet64: Gets the amount of physical memory, in bytes, allocated for the associated process.

process.memory.virtual

The amount of committed virtual memory for this process. One way to think of this is all the address space this process can read from without triggering an access violation; this includes memory backed solely by RAM, by a swapfile/pagefile and by other mapped files on disk.

Units Instrument Type Value Type
By ObservableUpDownCounter Double

The API used to retrieve the value is:

process.cpu.time

Total CPU seconds broken down by states.

Units Instrument Type Value Type Attribute Key(s) Attribute Values
s ObservableCounter Double process.cpu.state user, system

The APIs used to retrieve the values are:

process.cpu.count

The number of processors (CPU cores) available to the current process.

Units Instrument Type Value Type
{processors} ObservableUpDownCounter Int32

The API used to retrieve the value is System.Environment.ProcessorCount.

This metric is under discussion and not part of the Process Metrics Spec at this time.

process.thread.count

Process threads count.

Units Instrument Type Value Type
{thread} ObservableUpDownCounter Int32

The API used to retrieve the value is:

  • Process.Threads: Gets the set of threads that are running in the associated process.

References

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (69)

Showing the top 5 NuGet packages that depend on OpenTelemetry.Instrumentation.Process:

Package Downloads
OpenTelemetry.AutoInstrumentation.Runtime.Managed

Managed components used by the OpenTelemetry.AutoInstrumentation project.

Grafana.OpenTelemetry.Base

Minimal Grafana distribution of OpenTelemetry .NET

Beamable.Microservice.Runtime

The Beamable.Microservice.Runtime package contains the code required for running C# Microservices.

Fluxera.Extensions.Hosting.Modules.OpenTelemetry

A module that enables OpenTelemetry monitoring.

Elastic.OpenTelemetry

OpenTelemetry extensions for Elastic Observability.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.14.0-beta.2 291,771 11/14/2025
1.14.0-beta.1 22,192 11/13/2025
1.13.0-beta.1 134,708 10/22/2025
1.12.0-beta.1 3,272,938 5/5/2025
1.11.0-beta.2 2,210,910 3/5/2025
1.11.0-beta.1 982,120 1/27/2025
1.10.0-beta.1 1,513,888 12/9/2024
0.5.0-beta.7 4,969,790 9/25/2024
0.5.0-beta.6 4,487,725 6/18/2024
0.5.0-beta.5 4,165,186 4/5/2024
0.5.0-beta.4 4,866,646 1/4/2024
0.5.0-beta.3 5,338,548 6/9/2023
0.5.0-beta.2 1,374,784 2/28/2023
0.5.0-beta.1 111,920 2/17/2023