collector

package
v0.0.0-...-e257e26 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChoriaCollector

type ChoriaCollector struct {
	Collectors map[string]Collector
}

func NewChoriaCollector

func NewChoriaCollector(logger log.Logger, identity string) *ChoriaCollector

type Collector

type Collector interface {
	// Get new metrics and expose them via prometheus registry.
	Describe(ch chan<- *prometheus.Desc)
	Collect(ch chan<- prometheus.Metric)
}

func NewPingCollector

func NewPingCollector(logger log.Logger, identity string) Collector

type PingCollector

type PingCollector struct {
	Status *prometheus.Desc
	Time   *prometheus.Desc
	// contains filtered or unexported fields
}

func (*PingCollector) Collect

func (c *PingCollector) Collect(ch chan<- prometheus.Metric)

func (*PingCollector) Describe

func (c *PingCollector) Describe(ch chan<- *prometheus.Desc)

type PingMetric

type PingMetric struct {
	Status int
	Time   float64
}

Jump to

Keyboard shortcuts

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