Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
Cmd string `json:"cmd"`
}
Command probe allow the execution of any file or script and parse the output
type DefaultScalingProbe ¶
type DefaultScalingProbe struct{}
DefaultScalingProbe report a fake sensor value Value goes from 0 to 1 and to 1 to 0 each minute
func (*DefaultScalingProbe) Value ¶
func (p *DefaultScalingProbe) Value() (float64, error)
Value of the probe
type HAproxy ¶
type HAproxy struct { Socket string `json:"socket"` Type string `json:"type"` Item string `json:"item"` }
HAproxy configurable probe.
Metrics are retrived by accessing HAProxy command socket
func (*HAproxy) HaproxyCmd ¶
HaproxyCmd execution on the unix socket
type Prometheus ¶
type Prometheus struct { URL string `json:"url"` // Sample: http://localhost:9100/metrics Key string `json:"key"` // Sample: node_cpu{cpu="cpu6",mode="idle"} }
Prometheus probe
Metrics are retrived using HTTP/Text protocol (see https://prometheus.io/docs/instrumenting/exposition_formats/) TODO protobuf support ?
func (Prometheus) Value ¶
func (p Prometheus) Value() (float64, error)
Value make the request and parse content
Click to show internal directories.
Click to hide internal directories.