Closed
Description
AC:
- As per comment, there is a variadic option on
func NewGoCollector() prometheus.Collector
, sofunc NewGoCollector(opts...GoOption) prometheus.Collector
whereGoOption
is somefunc(o *goOptions)
and then we can haveWithMemStatsEnabled(bool)
WithRuntimeMetricsEnabled(bool)
and both true by default, which allows to customize metric behaviour.