YMJake.GreptimeDb.Ingester
0.1.3-preview
This is a prerelease version of YMJake.GreptimeDb.Ingester.
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package YMJake.GreptimeDb.Ingester --version 0.1.3-preview
NuGet\Install-Package YMJake.GreptimeDb.Ingester -Version 0.1.3-preview
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="YMJake.GreptimeDb.Ingester" Version="0.1.3-preview" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="YMJake.GreptimeDb.Ingester" Version="0.1.3-preview" />
<PackageReference Include="YMJake.GreptimeDb.Ingester" />
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 YMJake.GreptimeDb.Ingester --version 0.1.3-preview
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: YMJake.GreptimeDb.Ingester, 0.1.3-preview"
#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 YMJake.GreptimeDb.Ingester@0.1.3-preview
#: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=YMJake.GreptimeDb.Ingester&version=0.1.3-preview&prerelease
#tool nuget:?package=YMJake.GreptimeDb.Ingester&version=0.1.3-preview&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
GreptimeDb.Ingester
.NET ingester client for GreptimeDB using gRPC row inserts/deletes, stream writes, ORM-style object mapping, and Arrow Flight bulk ingestion.
Usage
var options = new GreptimeClientOptions { Host = "127.0.0.1", Port = 4001, Database = "public" };
await using var client = new GreptimeClient(options);
var table = new GreptimeTable("metrics")
.AddTagColumn("id", GreptimeColumnType.Int64)
.AddFieldColumn("cpu", GreptimeColumnType.Float64)
.AddTimestampColumn("ts", GreptimeColumnType.TimestampMilliseconds)
.AddRow(1, 0.5, DateTimeOffset.UtcNow);
await client.WriteAsync(table);
Examples
# In GreptimeDb.Ingester.Sample/Program.cs uncomment the target example, then:
dotnet run --project GreptimeDb.Ingester.Sample
Tables required for bulk/json/object/stream samples are provided in docs/precreate-tables.sql.
OpenTelemetry (optional)
- The client emits Activities via
ActivitySourceName(defaultGreptimeDb.Ingester). External OTEL providers canAddSource("GreptimeDb.Ingester")to collect spans. - Helpers in
GreptimeDb.Ingester.OpenTelemetry:AddGreptimeDbIngesterInstrumentation()/AddGreptimeDbIngesterMetrics(). - ASP.NET Core example:
builder.Services.AddOpenTelemetry()
.ConfigureResource(r => r.AddService(builder.Environment.ApplicationName))
.WithTracing(t => t
.AddAspNetCoreInstrumentation()
.AddGreptimeDbIngesterInstrumentation()
.AddOtlpExporter(o => o.Endpoint = new Uri("http://localhost:4317")))
.WithMetrics(m => m
.AddGreptimeDbIngesterMetrics()
.AddOtlpExporter(o => o.Endpoint = new Uri("http://localhost:4317")));
TODO
- Bulk/Arrow Flight writer (DoPut).
- Keepalive/User-Agent/TLS options.
- Telemetry/metrics/traces parity (full OTEL example).
- Error classification and retry/backoff policies.
- Connection management/backpressure.
- Docs: Docker/compose, Flight usage, delete streaming sample.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Apache.Arrow (>= 22.1.0)
- Apache.Arrow.Flight (>= 22.1.0)
- Google.Protobuf (>= 3.31.1)
- Grpc.Net.Client (>= 2.71.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Options (>= 10.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|