Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TCPConf ¶
type TCPConf struct {
Hostport string `yaml:"hostport"`
}
TCPConf is exported to receive YAML configuration.
func (TCPConf) Instrument ¶
func (c TCPConf) Instrument() map[string]prometheus.Collector
Instrument is a no-op to implement the `Configurer` interface.
func (TCPConf) MakeProber ¶
MakeProber constructs a `TCPPProbe` object from the contents of the bound `TCPPConf` object.
func (TCPConf) UnmarshalSettings ¶
func (c TCPConf) UnmarshalSettings(settings []byte) (probers.Configurer, error)
UnmarshalSettings takes YAML as bytes and unmarshals it to the to an TCPConf object.
Click to show internal directories.
Click to hide internal directories.