statsd

package
v0.0.0-...-a3a5c94 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 9 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 receive statsd metric and export prometheus metric

func CreateExporter

func CreateExporter(sc option.StatsdConfig, register *prometheus.Registry) *Exporter

CreateExporter

func (*Exporter) Collect

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

Collect implements the prometheus.Collector interface.

func (*Exporter) Describe

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

Describe implements the prometheus.Collector interface.

func (*Exporter) GetRegister

func (e *Exporter) GetRegister() *prometheus.Registry

GetRegister

func (*Exporter) ReloadConfig

func (e *Exporter) ReloadConfig() (err error)

ReloadConfig reload mapper config file

func (*Exporter) Start

func (e *Exporter) Start() error

Start

Directories

Path Synopsis
Package prometheus provides metrics primitives to instrument code for monitoring.
Package prometheus provides metrics primitives to instrument code for monitoring.
promhttp
Package promhttp provides tooling around HTTP servers and clients.
Package promhttp provides tooling around HTTP servers and clients.

Jump to

Keyboard shortcuts

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