From 63b36071bd753d8b64edd6534e8f28a4c02a5bbc Mon Sep 17 00:00:00 2001 From: miniduikboot Date: Thu, 23 May 2024 00:21:20 +0200 Subject: [PATCH] Disable unit counters, as they break prometheus See open-telemetry/opentelemetry-dotnet-contrib/issues/1617 --- Boot.Metrics/BootMetricsPluginStartup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Boot.Metrics/BootMetricsPluginStartup.cs b/Boot.Metrics/BootMetricsPluginStartup.cs index 0baeadb..a2b8c5c 100644 --- a/Boot.Metrics/BootMetricsPluginStartup.cs +++ b/Boot.Metrics/BootMetricsPluginStartup.cs @@ -46,7 +46,7 @@ public void ConfigureServices(IServiceCollection services) .AddMeter("Boot.Metrics.*") // Export to Prometheus - .AddPrometheusExporter()); + .AddPrometheusExporter(o => o.DisableTotalNameSuffixForCounters = true)); // tracing omitted because that'd require adding spans in Impostor }