Skip to content

Commit

Permalink
fix: prometheus exporter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
madhon committed Jul 24, 2024
1 parent 0119d90 commit 3e34d1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Catalog.ServiceDefaults/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ private static IHostApplicationBuilder AddOpenTelemetryExporters(this IHostAppli
builder.Services.AddOpenTelemetry().UseOtlpExporter();
}

builder.Services.AddOpenTelemetry().WithMetrics(metrics => metrics.AddPrometheusExporter());
builder.Services.AddOpenTelemetry()
.WithMetrics(metrics =>
metrics.AddPrometheusExporter(options => options.DisableTotalNameSuffixForCounters = true));

return builder;
}
Expand Down

0 comments on commit 3e34d1a

Please sign in to comment.