Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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"`
WalkParams WalkParams `river:"walk_param,block,optional"`
ConfigStruct snmp_config.Config
}
func (*Arguments) Convert ¶
func (a *Arguments) Convert() *snmp_exporter.Config
Convert converts the component's Arguments to the integration's Config.
func (*Arguments) UnmarshalRiver ¶
func (a *Arguments) UnmarshalRiver(f func(interface{}) error) error
UnmarshalRiver implements River unmarshalling for Arguments.
type SNMPTarget ¶
type SNMPTarget struct {
Name string `river:",label"`
Target string `river:"address,attr"`
Module string `river:"module,attr,optional"`
Auth string `river:"auth,attr,optional"`
WalkParams string `river:"walk_params,attr,optional"`
}
SNMPTarget defines a target to be used by the exporter.
type TargetBlock ¶
type TargetBlock []SNMPTarget
type WalkParam ¶
type WalkParam struct {
Name string `river:",label"`
MaxRepetitions uint32 `river:"max_repetitions,attr,optional"`
Retries int `river:"retries,attr,optional"`
Timeout time.Duration `river:"timeout,attr,optional"`
UseUnconnectedUDPSocket bool `river:"use_unconnected_udp_socket,attr,optional"`
}
type WalkParams ¶
type WalkParams []WalkParam
Click to show internal directories.
Click to hide internal directories.