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.
Click to show internal directories.
Click to hide internal directories.