Skip to content
Snippets Groups Projects
Commit 2d9c8fdc authored by Frederic BIDON's avatar Frederic BIDON Committed by Bruno Oliveira da Silva
Browse files

[KEYCLOAK-9460] Fixes obsolete Prometheus API call


* Prometheus client: update usage (previously used obsolete prometheus.Handle())

Signed-off-by: default avatarFrederic BIDON <frederic@oneconcern.com>
parent cffb7d08
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@ import (
"github.com/pressly/chi"
"github.com/pressly/chi/middleware"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/rs/cors"
"go.uber.org/zap"
)
......@@ -84,7 +85,7 @@ func newProxy(config *Config) (*oauthProxy, error) {
svc := &oauthProxy{
config: config,
log: log,
metricsHandler: prometheus.Handler(),
metricsHandler: promhttp.Handler(),
}
// parse the upstream endpoint
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment