mirror of
https://github.com/openfaas/faas.git
synced 2025-06-22 06:43:23 +00:00
Set content-type for mixed-in Prometheus results
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
@ -120,7 +120,8 @@ func main() {
|
||||
faasHandlers.AsyncReport = internalHandlers.MakeAsyncReport(metricsOptions)
|
||||
}
|
||||
|
||||
listFunctions := metrics.AddMetricsHandler(faasHandlers.ListFunctions, config.PrometheusHost, config.PrometheusPort)
|
||||
prometheusQuery := metrics.NewPrometheusQuery(config.PrometheusHost, config.PrometheusPort, &http.Client{})
|
||||
listFunctions := metrics.AddMetricsHandler(faasHandlers.ListFunctions, prometheusQuery)
|
||||
|
||||
r := mux.NewRouter()
|
||||
|
||||
|
Reference in New Issue
Block a user