stats

package
v0.0.0-...-14308cf Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gauge

type Gauge interface {
	Set(float64)
}

type GaugeRegistry

type GaugeRegistry interface {
	Get(gaugeName, origin, unit string, tags map[string]string) Gauge
}

type PromRegistry

type PromRegistry struct {
	Registerer prometheus.Registerer
	// contains filtered or unexported fields
}

func NewPromRegistry

func NewPromRegistry(r prometheus.Registerer) *PromRegistry

func (*PromRegistry) Get

func (r *PromRegistry) Get(name, origin, unit string, tags map[string]string) Gauge

type PromSender

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

func NewPromSender

func NewPromSender(registry GaugeRegistry, origin string, labels map[string]string) *PromSender

func (PromSender) Send

func (p PromSender) Send(stats collector.SystemStat)

Jump to

Keyboard shortcuts

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