Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func NewCollector ¶
Create new instance of collector, returns error if an instance of speedtest is not provided Arguments:
cacheTime: Minimum time between speedtest runs instance: Name of this instance, provided as label on all metrics speedtest: Instance of speedtest to use for collection metrics
func (*Collector) Collect ¶
func (c *Collector) Collect(ch chan<- prometheus.Metric)
Implements the Collect function for prometheus.Collector
func (*Collector) Describe ¶
func (c *Collector) Describe(ch chan<- *prometheus.Desc)
Implements the Describe function for prometheus.Collector
type ErrNoSpeedtest ¶
type ErrNoSpeedtest struct{}
func (ErrNoSpeedtest) Error ¶
func (e ErrNoSpeedtest) Error() string
Click to show internal directories.
Click to hide internal directories.