blackbox

package
v0.37.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	ProbeTimeoutOffset: 500 * time.Millisecond,
}

DefaultArguments holds non-zero default options for Arguments when it is unmarshaled from river.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	ConfigFile         string                    `river:"config_file,attr,optional"`
	Config             rivertypes.OptionalSecret `river:"config,attr,optional"`
	Targets            TargetBlock               `river:"target,block"`
	ProbeTimeoutOffset time.Duration             `river:"probe_timeout_offset,attr,optional"`
	ConfigStruct       blackbox_config.Config
}

func (*Arguments) Convert

func (a *Arguments) Convert() *blackbox_exporter.Config

Convert converts the component's Arguments to the integration's Config.

func (*Arguments) SetToDefault added in v0.35.0

func (a *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

func (*Arguments) Validate added in v0.35.0

func (a *Arguments) Validate() error

Validate implements river.Validator.

type BlackboxTarget

type BlackboxTarget struct {
	Name   string            `river:",label"`
	Target string            `river:"address,attr"`
	Module string            `river:"module,attr,optional"`
	Labels map[string]string `river:"labels,attr,optional"`
}

BlackboxTarget defines a target to be used by the exporter.

type TargetBlock

type TargetBlock []BlackboxTarget

func (TargetBlock) Convert

Convert converts the component's TargetBlock to a slice of integration's BlackboxTarget.

Jump to

Keyboard shortcuts

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