![]() |
VOOZH | about |
dotnet add package OpenTelemetry.Exporter.InfluxDB --version 1.0.0-alpha.8
NuGet\Install-Package OpenTelemetry.Exporter.InfluxDB -Version 1.0.0-alpha.8
<PackageReference Include="OpenTelemetry.Exporter.InfluxDB" Version="1.0.0-alpha.8" />
<PackageVersion Include="OpenTelemetry.Exporter.InfluxDB" Version="1.0.0-alpha.8" />Directory.Packages.props
<PackageReference Include="OpenTelemetry.Exporter.InfluxDB" />Project file
paket add OpenTelemetry.Exporter.InfluxDB --version 1.0.0-alpha.8
#r "nuget: OpenTelemetry.Exporter.InfluxDB, 1.0.0-alpha.8"
#:package OpenTelemetry.Exporter.InfluxDB@1.0.0-alpha.8
#addin nuget:?package=OpenTelemetry.Exporter.InfluxDB&version=1.0.0-alpha.8&prereleaseInstall as a Cake Addin
#tool nuget:?package=OpenTelemetry.Exporter.InfluxDB&version=1.0.0-alpha.8&prereleaseInstall as a Cake Tool
| Status | |
|---|---|
| Stability | Alpha |
| Code Owners | @havret |
👁 NuGet version badge
👁 NuGet download count badge
👁 codecov.io
The InfluxDB exporter converts OpenTelemetry metrics into the InfluxDB model following the OpenTelemetry->InfluxDB conversion schema.
This exporter can be used with InfluxDB 2.x and InfluxDB 1.8+ (see details).
dotnet add package --prerelease OpenTelemetry.Exporter.InfluxDB
services.AddOpenTelemetry()
.WithMetrics(builder => builder
.AddInfluxDBMetricsExporter(options =>
{
options.Org = "org";
options.Bucket = "bucket";
options.Token = "token";
options.Endpoint = new Uri("http://localhost:8086");
options.MetricsSchema = MetricsSchema.TelegrafPrometheusV2;
}));
Or configure directly:
Call the MeterProviderBuilder.AddInfluxDBMetricsExporter extension to
register the Prometheus exporter.
var meterProvider = Sdk.CreateMeterProviderBuilder()
.AddInfluxDBMetricsExporter(options =>
{
options.Org = "org";
options.Bucket = "bucket";
options.Token = "token";
options.Endpoint = new Uri("http://localhost:8086");
options.MetricsSchema = MetricsSchema.TelegrafPrometheusV2;
})
.Build();
builder.Services.AddSingleton(meterProvider);
You can configure the InfluxDBMetricsExporter through
InfluxDBMetricsExporterOptions.
HTTP/S destination for the line protocol.
The name of the InfluxDB organization that owns the destination bucket.
The name of the InfluxDB bucket to which signals will be written.
The authentication token for InfluxDB.
The chosen metrics schema to write. Default value is
MetricsSchema.TelegrafPrometheusV1.
The time to wait at most (in milliseconds) with the write. Default value is 1000.
InfluxDB 1.8.0 introduced forward compatibility APIs for InfluxDB 2.0, allowing you to easily transition from InfluxDB 1.x to InfluxDB 2.0 Cloud or open source.
Here's a summary of the client API usage differences:
Use the format username:password for an authentication token, e.g.,
my-user:my-password. If the server doesn't require authentication,
use an empty string ("").
The organization parameter is not used in InfluxDB 1.8. Use a hyphen ("-") where necessary.
Use the format database/retention-policy where a bucket is required. If the
default retention policy should be used, skip the retention policy.
Examples: telegraf/autogen, telegraf.
When using InfluxDB 1.8, modify the AddInfluxDBMetricsExporter options accordingly:
services.AddOpenTelemetry()
.WithMetrics(builder => builder
.AddInfluxDBMetricsExporter(options =>
{
options.Org = "-";
options.Bucket = "telegraf/autogen";
options.Token = "my-user:my-password";
options.Endpoint = new Uri("http://localhost:8086");
options.MetricsSchema = MetricsSchema.TelegrafPrometheusV2;
}));
This component uses an EventSource with the name "OpenTelemetry-Exporter-InfluxDB" for its internal logging. Please refer to SDK troubleshooting for instructions on seeing these internal logs.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 2 NuGet packages that depend on OpenTelemetry.Exporter.InfluxDB:
| Package | Downloads |
|---|---|
|
JF91.OpenTelemetry
Integrate OpenTelemetry into your ASP.NET Web API using appsettings.json |
|
|
telemetra.monitoring
Telemetra Monitoring SDK provides a unified, extensible, and production-ready observability solution for .NET applications. It enables seamless collection and export of traces, metrics, and logs to multiple backends (OTLP, Jaeger, Grafana, Sentry, Tempo, Alloy, Console, Prometheus, Zipkin) with advanced configuration, business insights, and enterprise features. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-alpha.8 | 8,019 | 4/21/2026 |
| 1.0.0-alpha.7 | 8,691 | 1/21/2026 |
| 1.0.0-alpha.6 | 807 | 11/13/2025 |
| 1.0.0-alpha.5 | 234 | 10/23/2025 |
| 1.0.0-alpha.4 | 42,172 | 10/2/2024 |
| 1.0.0-alpha.3 | 28,442 | 10/13/2023 |
| 1.0.0-alpha.2 | 1,710 | 6/20/2023 |
| 1.0.0-alpha.1 | 291 | 5/19/2023 |