statsd

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: LGPL-3.0 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 create a exporter

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 GetRegister

func (*Exporter) ReloadConfig

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

ReloadConfig reload mapper config file

func (*Exporter) Start

func (e *Exporter) Start() error

Start 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