Skip to content
Snippets Groups Projects
Unverified Commit ea7fd6d4 authored by Stephan Renatus's avatar Stephan Renatus
Browse files

cmd/dex: adapt to prometheus API change

parent 076cd774
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ func serve(cmd *cobra.Command, args []string) error {
return fmt.Errorf("failed to register Go runtime metrics: %v", err)
}
err = prometheusRegistry.Register(prometheus.NewProcessCollector(os.Getpid(), ""))
err = prometheusRegistry.Register(prometheus.NewProcessCollector(prometheus.ProcessCollectorOpts{}))
if err != nil {
return fmt.Errorf("failed to register process metrics: %v", err)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment