common

package
v1.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsConfig

type MetricsConfig struct {
	Autoscrape  autoscrape.Config `yaml:"autoscrape,omitempty"`
	InstanceKey *string           `yaml:"instance,omitempty"`
	ExtraLabels labels.Labels     `yaml:"extra_labels,omitempty"`
}

MetricsConfig is a set of common options shared by metrics integrations. It should be utilised by an integration's config by inlining the common options:

type IntegrationConfig struct {
  Common common.MetricsConfig `yaml:",inline"`
}

func (*MetricsConfig) ApplyDefaults

func (mc *MetricsConfig) ApplyDefaults(g autoscrape.Global)

ApplyDefaults applies defaults to mc.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL