cmd/dex: adapt to prometheus API change

Signed-off-by: Stephan Renatus <srenatus@chef.io>
This commit is contained in:
Stephan Renatus 2019-07-30 12:11:02 +02:00
parent 076cd77469
commit ea7fd6d470
No known key found for this signature in database
GPG Key ID: 811376EBA81C2C59

View File

@ -83,7 +83,7 @@ func serve(cmd *cobra.Command, args []string) error {
return fmt.Errorf("failed to register Go runtime metrics: %v", err) 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 { if err != nil {
return fmt.Errorf("failed to register process metrics: %v", err) return fmt.Errorf("failed to register process metrics: %v", err)
} }