Skip to content

Commit

Permalink
Merge pull request #6 from liamawhite/better-default
Browse files Browse the repository at this point in the history
Use promhttp.ContinueOnError for best effort metrics serving
  • Loading branch information
odeke-em authored Mar 23, 2020
2 parents 56ffe58 + 396b19a commit a37c735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func New(o Options) (*Exporter, error) {
options: o,
gatherer: o.Registry,
collector: collector,
handler: promhttp.HandlerFor(o.Registry, promhttp.HandlerOpts{}),
handler: promhttp.HandlerFor(o.Registry, promhttp.HandlerOpts{ErrorHandling: promhttp.ContinueOnError}),
}
return exp, nil
}
Expand Down

0 comments on commit a37c735

Please sign in to comment.