Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSExporter ¶
type DNSExporter struct {
// contains filtered or unexported fields
}
DNSExporter collects DNS stats and exports them using the prometheus metrics package.
func NewDNSExporter ¶
func NewDNSExporter(hosts []string) *DNSExporter
NewDNSExporter returns an initialized Exporter.
func (*DNSExporter) Collect ¶
func (p *DNSExporter) Collect(ch chan<- prometheus.Metric)
Collect fetches the Fastping stats and delivers them as Prometheus metrics. It implements promethues.Collector.
func (*DNSExporter) Describe ¶
func (p *DNSExporter) Describe(ch chan<- *prometheus.Desc)
Describe describes all the metrics ever exported. It implements prometheus.Collector.
type HTTPExporter ¶
type HTTPExporter struct {
// contains filtered or unexported fields
}
HTTPExporter collects HTTP stats and exports them using the prometheus metrics package.
func NewHTTPExporter ¶
func NewHTTPExporter(hosts []string, timeout time.Duration) *HTTPExporter
NewHTTPExporter returns an initialized Exporter.
func (*HTTPExporter) Collect ¶
func (p *HTTPExporter) Collect(ch chan<- prometheus.Metric)
Collect fetches the Fastping stats and delivers them as Prometheus metrics. It implements promethues.Collector.
func (*HTTPExporter) Describe ¶
func (p *HTTPExporter) Describe(ch chan<- *prometheus.Desc)
Describe describes all the metrics ever exported. It implements prometheus.Collector.