Skip to content

Commit

Permalink
cmd/dex: adapt to prometheus API change
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Renatus <[email protected]>
  • Loading branch information
srenatus committed Jul 31, 2019
1 parent 076cd77 commit ea7fd6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/dex/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit ea7fd6d

Please sign in to comment.