collector

package
v0.0.0-...-e41327b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2016 License: GPL-3.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL