Documentation ¶
Index ¶
Constants ¶
const DefaultMinimumReadMemStatsInterval time.Duration = 15 * time.Second
DefaultMinimumReadMemStatsInterval is the default minimum interval between calls to runtime.ReadMemStats(). Use the WithMinimumReadMemStatsInterval() option to modify this setting in Start().
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option interface {
// ApplyRuntime updates *config.
ApplyRuntime(*config)
}
Option supports configuring optional settings for runtime metrics.
func WithExtraRuntimeMetrics ¶
func WithExtraRuntimeMetrics() Option
WithExtraRuntimeMetrics sets a flag that if set to true will allow extra metrics to be emitted eg. goroutine num.
func WithLabels ¶
WithLabels sets a number of labels to the actual metric because the export at the collector side does not expose them by default if they are only specified at the resource level to be emitted eg. goroutine num.
func WithMetricPrefix ¶
WithMetricPrefix sets a prefix to the name of all the metrics
func WithMinimumReadMemStatsInterval ¶
WithMinimumReadMemStatsInterval sets a minimum interval between calls to runtime.ReadMemStats(), which is a relatively expensive call to make frequently. This setting is ignored when `d` is negative.