HTTP addr of service should not be hidden in Metrics config. #2312
Labels
feature
New feature or request
i/breaking change
PR that breaks forwards or backwards compatibility
i/help wanted
Nobody is working on this at the moment
In
env.Metrics
we specify the address we export Prometheus metrics. But we deliberately also serve other data on this address. Therefore we should change:Metrics.Prometheus
config toHTTP.Address
and add a flag whether Prometheus should be enabled.http.ListenAndServe
inenv.StartPrometheus
it should be the app's responsibility to do so.The text was updated successfully, but these errors were encountered: