blackbox_exporter_v2

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{

	ProbeTimeoutOffset: 0.5,
}

DefaultConfig holds the default settings for the blackbox_exporter integration.

Functions

This section is empty.

Types

type Config

type Config struct {
	BlackboxConfigFile string                             `yaml:"config_file,omitempty"`
	BlackboxTargets    []blackbox_exporter.BlackboxTarget `yaml:"blackbox_targets"`
	BlackboxConfig     util.RawYAML                       `yaml:"blackbox_config,omitempty"`
	ProbeTimeoutOffset float64                            `yaml:"probe_timeout_offset,omitempty"`

	Common common.MetricsConfig `yaml:",inline"`
	// contains filtered or unexported fields
}

Config configures the Blackbox integration.

func (*Config) ApplyDefaults

func (c *Config) ApplyDefaults(globals integrations_v2.Globals) error

ApplyDefaults applies the integration's default configuration.

func (*Config) Identifier

func (c *Config) Identifier(globals integrations_v2.Globals) (string, error)

Identifier returns a string that identifies the integration.

func (*Config) Name

func (c *Config) Name() string

Name returns the name of the integration.

func (*Config) NewIntegration

func (c *Config) NewIntegration(log log.Logger, globals integrations_v2.Globals) (integrations_v2.Integration, error)

NewIntegration creates a new blackbox integration.

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler for Config.

Jump to

Keyboard shortcuts

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