[Prometheus] expose prometheus with auth #2899
Labels
enhancement
New feature or request
metrics
Metrics signal related
pkg:OpenTelemetry.Exporter.Prometheus.AspNetCore
Issues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet package
Stale
Issues and pull requests which have been flagged for closing due to inactivity
Feature Request
Is your feature request related to a problem?
Exposing Metrics is not desirable in most cases. If Prometheus is hosted on another machine it would be nice to support authentication in the metrics endpoint. Prometheus supports scraping with basic auth, tls certs or oauth https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config
Describe the solution you'd like:
Adding one or more of the authentication modes when exposing the metrics endpoint would make it safe to expose the metrics where the Prometheus instance is hosted elsewhere
similar issues:
#2504 (otel basic aut)
#2009 (otel cert auth)
The text was updated successfully, but these errors were encountered: