Merge pull request #1679 from Random-Liu/fix-metrics
Set ContinueOnError for prometheus http handler.
This commit is contained in:
commit
f3d900b148
@ -100,7 +100,7 @@ func RegisterPrometheusHandler(mux httpmux.Mux, containerManager manager.Manager
|
|||||||
prometheus.NewGoCollector(),
|
prometheus.NewGoCollector(),
|
||||||
prometheus.NewProcessCollector(os.Getpid(), ""),
|
prometheus.NewProcessCollector(os.Getpid(), ""),
|
||||||
)
|
)
|
||||||
mux.Handle(prometheusEndpoint, promhttp.HandlerFor(r, promhttp.HandlerOpts{}))
|
mux.Handle(prometheusEndpoint, promhttp.HandlerFor(r, promhttp.HandlerOpts{ErrorHandling: promhttp.ContinueOnError}))
|
||||||
}
|
}
|
||||||
|
|
||||||
func staticHandlerNoAuth(w http.ResponseWriter, r *http.Request) {
|
func staticHandlerNoAuth(w http.ResponseWriter, r *http.Request) {
|
||||||
|
Loading…
Reference in New Issue
Block a user