collector

package
v0.0.0-...-5631f52 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTag

func CreateTag(name, value string) string

Types

type Collector

type Collector interface {
	// Register function
	// accepts a function that receives statsd agent and a parameter
	// then function can call Count or Gauge of other metric methods
	// on them
	Register(Exporter)

	Start()
}

type CollectorFunc func(Statsd) bool

func NewLoopCollector

func NewLoopCollector(hostport string, namespace string, tags []string) Collector

type Exporter

type Exporter interface {
	Export(Statsd) bool
}

type LoopCollector

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

func (*LoopCollector) Register

func (c *LoopCollector) Register(e Exporter)

func (*LoopCollector) Start

func (c *LoopCollector) Start()

type Statsd

type Statsd interface {
	Count(name string, value int64, tags []string, rate float64) error
}

Jump to

Keyboard shortcuts

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