OpenTelemetry.Exporter.Prometheus.HttpListener
1.10.0-beta.1
Prefix Reserved
dotnet add package OpenTelemetry.Exporter.Prometheus.HttpListener --version 1.10.0-beta.1
NuGet\Install-Package OpenTelemetry.Exporter.Prometheus.HttpListener -Version 1.10.0-beta.1
<PackageReference Include="OpenTelemetry.Exporter.Prometheus.HttpListener" Version="1.10.0-beta.1" />
paket add OpenTelemetry.Exporter.Prometheus.HttpListener --version 1.10.0-beta.1
#r "nuget: OpenTelemetry.Exporter.Prometheus.HttpListener, 1.10.0-beta.1"
// Install OpenTelemetry.Exporter.Prometheus.HttpListener as a Cake Addin #addin nuget:?package=OpenTelemetry.Exporter.Prometheus.HttpListener&version=1.10.0-beta.1&prerelease // Install OpenTelemetry.Exporter.Prometheus.HttpListener as a Cake Tool #tool nuget:?package=OpenTelemetry.Exporter.Prometheus.HttpListener&version=1.10.0-beta.1&prerelease
Prometheus Exporter HttpListener for OpenTelemetry .NET
An OpenTelemetry Prometheus exporter that configures an HttpListener instance for Prometheus to scrape.
[!WARNING] 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. |
.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.10.0 && < 2.0.0)
-
.NETStandard 2.0
- OpenTelemetry (>= 1.10.0 && < 2.0.0)
-
net8.0
- OpenTelemetry (>= 1.10.0 && < 2.0.0)
-
net9.0
- OpenTelemetry (>= 1.10.0 && < 2.0.0)
NuGet packages (7)
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. |
|
Bones.Monitoring
Package Description |
|
SharpAbp.Abp.OpenTelemetry.Exporter.Prometheus.HttpListener
SharpAbp OpenTelemetry Module |
|
Aguacongas.TheIdServer
OpenID/Connect , OAuth and WS-Federation server base on Duende IdentityServer. |
|
RaaLabs.Edge.Modules.Diagnostics
Package Description |
GitHub repositories (7)
Showing the top 5 popular GitHub repositories that depend on OpenTelemetry.Exporter.Prometheus.HttpListener:
Repository | Stars |
---|---|
prometheus-net/prometheus-net
.NET library to instrument your code with Prometheus metrics
|
|
Aguafrommars/TheIdServer
OpenID/Connect, OAuth2, WS-Federation and SAML 2.0 server based on Duende IdentityServer and ITFoxtec Identity SAML 2.0 with its admin UI
|
|
open-telemetry/opentelemetry-dotnet-contrib
This repository contains set of components extending functionality of the OpenTelemetry .NET SDK. Instrumentation libraries, exporters, and other components can find their home here.
|
|
axzxs2001/Asp.NetCoreExperiment
原来所有项目都移动到**OleVersion**目录下进行保留。新的案例装以.net 5.0为主,一部分对以前案例进行升级,一部分将以前的工作经验总结出来,以供大家参考!
|
|
cocosip/sharp-abp
Abp-vNext extension modules
|
Version | Downloads | Last updated |
---|---|---|
1.10.0-beta.1 | 6 | 11/12/2024 |
1.9.0-beta.2 | 102,032 | 6/24/2024 |
1.9.0-beta.1 | 176,677 | 6/14/2024 |
1.9.0-alpha.2 | 12,432 | 5/29/2024 |
1.9.0-alpha.1 | 4,488 | 5/20/2024 |
1.8.0-rc.1 | 310,505 | 3/27/2024 |
1.8.0-beta.1 | 5,939 | 3/14/2024 |
1.7.0-rc.1 | 327,423 | 11/30/2023 |
1.7.0-alpha.1 | 14,970 | 10/17/2023 |
1.6.0-rc.1 | 425,513 | 8/21/2023 |
1.6.0-alpha.1 | 13,653 | 7/12/2023 |
1.5.0-rc.1 | 182,753 | 5/26/2023 |
1.5.0-alpha.1 | 29,807 | 3/8/2023 |
1.4.0-rc.4 | 340,855 | 2/11/2023 |
1.4.0-rc.3 | 3,615 | 2/2/2023 |
1.4.0-rc.2 | 15,894 | 1/9/2023 |
1.4.0-rc.1 | 25,419 | 12/12/2022 |
1.4.0-beta.3 | 87,137 | 11/7/2022 |
1.4.0-beta.2 | 96,120 | 10/17/2022 |
1.4.0-beta.1 | 10,866 | 9/30/2022 |
1.4.0-alpha.2 | 80,424 | 8/18/2022 |
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/coreunstable-1.10.0-beta.1/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/coreunstable-1.10.0-beta.1/src/OpenTelemetry.Exporter.Prometheus.HttpListener/CHANGELOG.md.