diff --git a/cmd/dex/serve.go b/cmd/dex/serve.go index 1733a5c8..208ec9c0 100644 --- a/cmd/dex/serve.go +++ b/cmd/dex/serve.go @@ -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) }