Provide MapOpenTelemetryPrometheusScrapingEndpoint()
extension method for IEndpointRouteBuilder
#2869
Labels
enhancement
New feature or request
pkg:OpenTelemetry.Exporter.Prometheus.AspNetCore
Issues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet package
Feature Request
Is your feature request related to a problem?
In internal clusters, the
/metrics
endpoint sometimes should not be exposed to the public. Therefore, in ASP.Net Core you can map an endpoint to a specific port and expose that port only to cluster internal traffic.Describe the solution you'd like:
Provide an
MapOpenTelemetryPrometheusScrapingEndpoint
extension returning anIEndpointConventionBuilder
to allow further configuration of the enpoint like required hosts.The text was updated successfully, but these errors were encountered: