You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.NET 8 (happen also on .NET 7)
app (Console) is under a container on Linux. (self contained)
Default metrics
started this way:
using var server = new MetricServer(port: 1234);
server.Start();
When the metrics are fetched, ex: " 192.168.1.240:1234/metrics " they work but they generate in the application :
Exception thrown: 'System.Net.Sockets.SocketException' in System.Net.Sockets.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.Private.CoreLib.dll
This happen 15 seconds after a metric fetch. So you need to fetch at an interval higher than 15secs to repro.
When using .NET 7 there was this workaround:
using var server = new KestrelMetricServer(port: 1234);
server.Start();
But in .NET 8 this workaround generate theses errors :
Exception thrown: 'System.ArgumentException' in Prometheus.NetStandard.dll
http.server.active_requests collection failed: The list of label values must have the same number of elements as the list of label names.
The text was updated successfully, but these errors were encountered:
.NET 8 (happen also on .NET 7)
app (Console) is under a container on Linux. (self contained)
Default metrics
started this way:
When the metrics are fetched, ex: " 192.168.1.240:1234/metrics " they work but they generate in the application :
Exception thrown: 'System.Net.Sockets.SocketException' in System.Net.Sockets.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.Private.CoreLib.dll
This happen 15 seconds after a metric fetch. So you need to fetch at an interval higher than 15secs to repro.
When using .NET 7 there was this workaround:
But in .NET 8 this workaround generate theses errors :
Exception thrown: 'System.ArgumentException' in Prometheus.NetStandard.dll
http.server.active_requests collection failed: The list of label values must have the same number of elements as the list of label names.
The text was updated successfully, but these errors were encountered: