Skip to content

Add option to Go process metrics to fallback to pre v1.12.0 behaviour. #983

Closed
@bwplotka

Description

@bwplotka

AC:

  • As per comment, there is a variadic option on func NewGoCollector() prometheus.Collector, so func NewGoCollector(opts...GoOption) prometheus.Collector where GoOption is some func(o *goOptions) and then we can have WithMemStatsEnabled(bool) WithRuntimeMetricsEnabled(bool) and both true by default, which allows to customize metric behaviour.

cc @kakkoyun @mknyszek

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions