OpenTelemetry.Exporter.Prometheus.HttpListener
1.13.1-beta.1
Prefix Reserved
dotnet add package OpenTelemetry.Exporter.Prometheus.HttpListener --version 1.13.1-beta.1
NuGet\Install-Package OpenTelemetry.Exporter.Prometheus.HttpListener -Version 1.13.1-beta.1
<PackageReference Include="OpenTelemetry.Exporter.Prometheus.HttpListener" Version="1.13.1-beta.1" />
<PackageVersion Include="OpenTelemetry.Exporter.Prometheus.HttpListener" Version="1.13.1-beta.1" />
<PackageReference Include="OpenTelemetry.Exporter.Prometheus.HttpListener" />
paket add OpenTelemetry.Exporter.Prometheus.HttpListener --version 1.13.1-beta.1
#r "nuget: OpenTelemetry.Exporter.Prometheus.HttpListener, 1.13.1-beta.1"
#:package OpenTelemetry.Exporter.Prometheus.HttpListener@1.13.1-beta.1
#addin nuget:?package=OpenTelemetry.Exporter.Prometheus.HttpListener&version=1.13.1-beta.1&prerelease
#tool nuget:?package=OpenTelemetry.Exporter.Prometheus.HttpListener&version=1.13.1-beta.1&prerelease
Prometheus Exporter HttpListener for OpenTelemetry .NET
An OpenTelemetry Prometheus exporter that configures an HttpListener instance for Prometheus to scrape.
This component is intended for dev inner-loop, there is no plan to make it production ready. Production environments should consider using OpenTelemetry.Exporter.OpenTelemetryProtocol. Refer to the Getting Started with Prometheus and Grafana tutorial for more information.
Prerequisite
Steps to enable OpenTelemetry.Exporter.Prometheus.HttpListener
Step 1: Install Package
dotnet add package --prerelease OpenTelemetry.Exporter.Prometheus.HttpListener
Step 2: Add PrometheusHttpListener
var meterProvider = Sdk.CreateMeterProviderBuilder()
.AddMeter(MyMeter.Name)
.AddPrometheusHttpListener(
options => options.UriPrefixes = new string[] { "http://localhost:9464/" })
.Build();
UriPrefixes
Defines one or more URI (Uniform Resource Identifier) prefixes which will be
used by the HTTP listener. The default value is ["http://localhost:9464/"]
.
Refer to HttpListenerPrefixCollection.Add(String) for more details.
ScrapeEndpointPath
Defines the Prometheus scrape endpoint path. Default value: "/metrics"
.
Troubleshooting
This component uses an EventSource with the name "OpenTelemetry-Exporter-Prometheus" for its internal logging. Please refer to SDK troubleshooting for instructions on seeing these internal logs.
References
Product | Versions 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 is compatible. 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 was computed. 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 is compatible. 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. |
-
.NETFramework 4.6.2
- OpenTelemetry (>= 1.13.1 && < 2.0.0)
-
.NETStandard 2.0
- OpenTelemetry (>= 1.13.1 && < 2.0.0)
-
net8.0
- OpenTelemetry (>= 1.13.1 && < 2.0.0)
-
net9.0
- OpenTelemetry (>= 1.13.1 && < 2.0.0)
NuGet packages (12)
Showing the top 5 NuGet packages that depend on OpenTelemetry.Exporter.Prometheus.HttpListener:
Package | Downloads |
---|---|
OpenTelemetry.AutoInstrumentation.Runtime.Managed
Managed components used by the OpenTelemetry.AutoInstrumentation project. |
|
Elvia.Telemetry
Common logging/telemetry functionality to used by all services within the Elvia ecosystem. |
|
Bones.Monitoring
Package Description |
|
SharpAbp.Abp.OpenTelemetry.Exporter.Prometheus.HttpListener
SharpAbp OpenTelemetry Module |
|
Redpoint.CloudFramework
A framework for building ASP.NET Core applications on top of Google Cloud Firestore in Datastore mode. Not only does this framework provide a model-based API for interacting with Google Cloud Firestore, it contains useful implementations of things like database migrations, distributed locks, geographic indexes and sharded counters. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.13.1-beta.1 | 356 | 10/10/2025 |
1.13.0-beta.1 | 3,785 | 10/1/2025 |
1.12.0-beta.1 | 450,649 | 5/6/2025 |
1.11.2-beta.1 | 588,400 | 3/5/2025 |
1.11.0-beta.1 | 136,798 | 1/16/2025 |
1.10.0-beta.1 | 147,423 | 11/12/2024 |
1.9.0-beta.2 | 921,485 | 6/24/2024 |
1.9.0-beta.1 | 559,027 | 6/14/2024 |
1.9.0-alpha.2 | 57,067 | 5/29/2024 |
1.9.0-alpha.1 | 6,635 | 5/20/2024 |
1.8.0-rc.1 | 708,027 | 3/27/2024 |
1.8.0-beta.1 | 11,224 | 3/14/2024 |
1.7.0-rc.1 | 590,351 | 11/30/2023 |
1.7.0-alpha.1 | 15,777 | 10/17/2023 |
1.6.0-rc.1 | 597,399 | 8/21/2023 |
1.6.0-alpha.1 | 16,865 | 7/12/2023 |
1.5.0-rc.1 | 238,633 | 5/26/2023 |
1.5.0-alpha.1 | 42,847 | 3/8/2023 |
1.4.0-rc.4 | 499,690 | 2/11/2023 |
1.4.0-rc.3 | 3,753 | 2/2/2023 |
1.4.0-rc.2 | 16,278 | 1/9/2023 |
1.4.0-rc.1 | 27,463 | 12/12/2022 |
1.4.0-beta.3 | 90,648 | 11/7/2022 |
1.4.0-beta.2 | 130,787 | 10/17/2022 |
1.4.0-beta.1 | 11,181 | 9/30/2022 |
1.4.0-alpha.2 | 80,598 | 8/18/2022 |
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/coreunstable-1.13.1-beta.1/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/coreunstable-1.13.1-beta.1/src/OpenTelemetry.Exporter.Prometheus.HttpListener/CHANGELOG.md.