-
Notifications
You must be signed in to change notification settings - Fork 881
unit "bytes" not a suffix of metric "process_runtime_dotnet_gc_allocations_size_bytes_total" #5502
Description
Bug Report
List of all OpenTelemetry NuGet packages and version using:
OpenTelemetry.Exporter.Console" Version="1.8.0"
OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.8.0"
OpenTelemetry.Exporter.Prometheus.AspNetCore" Version="1.8.0-rc.1"
OpenTelemetry.Extensions.Hosting" Version="1.8.0"
OpenTelemetry.Instrumentation.AspNetCore" Version="1.7.1"
OpenTelemetry.Instrumentation.EntityFrameworkCore" Version="1.0.0-beta.10"
OpenTelemetry.Instrumentation.GrpcNetClient" Version="1.7.0-beta.1"
OpenTelemetry.Instrumentation.Http" Version="1.7.1"
OpenTelemetry.Instrumentation.Process" Version="1.0.0-alpha.6"
OpenTelemetry.Instrumentation.Runtime" Version="1.7.0"
Runtime version:
net8.0
Symptom
Prometheus pull error msg : unit "bytes" not a suffix of metric "process_runtime_dotnet_gc_allocations_size_bytes_total"
Prometheus Build Info:
Version 2.51.1
Rev 855b5ac4b80956874eb1790a04c92327f2f99e38
Init Code:
Telemetry.WithMetrics(metrics =>
{
metrics
.AddAspNetCoreInstrumentation()
.AddHttpClientInstrumentation()
.AddRuntimeInstrumentation()
.AddProcessInstrumentation()
.AddMeter("Microsoft.AspNetCore.Hosting")
.AddMeter("Microsoft.AspNetCore.Routing")
.AddMeter("Microsoft.AspNetCore.Diagnostics")
.AddMeter("Microsoft.AspNetCore.Server.Kestrel")
.AddMeter("Microsoft.AspNetCore.Http.Connections")
.AddMeter("Microsoft.Extensions.Diagnostics.HealthChecks")
.SetMaxMetricStreams(500)
.SetMaxMetricPointsPerMetricStream(200)
.AddPrometheusExporter();
});This error occurred after upgrading the version of OpenTelemetry.Exporter.Prometheus.AspNetCore to 1.8.0-rc1 and no longer occurred after downgrading to 1.7.0-rc1.