latencymetrics

package
v0.0.0-...-494be74 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	// contains filtered or unexported fields
}

Exporter struc for the latency Exporter

func NewExporter

func NewExporter(urlsstr string, delimiter string, logger log.Logger) (*Exporter, error)

NewExporter creates urlm objects and return exporter

func (*Exporter) Collect

func (e *Exporter) Collect(ch chan<- prometheus.Metric)

Collect implementation for prometheus exporter

func (*Exporter) Describe

func (e *Exporter) Describe(ch chan<- *prometheus.Desc)

Describe describes all the metrics ever exported. It implements prometheus.Collector.

type URLMetric

type URLMetric struct {
	// contains filtered or unexported fields
}

URLMetric struct for urlmetric

func NewLatencyMetricObject

func NewLatencyMetricObject(urlStr string) *URLMetric

NewLatencyMetricObject Creates URLMetric Object and returns

func (*URLMetric) String

func (um *URLMetric) String() string

func (*URLMetric) TimeLatency

func (um *URLMetric) TimeLatency(e *Exporter) error

TimeLatency collects latency metrics and updats URLMetric

Jump to

Keyboard shortcuts

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