statsd

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLabelStyle

func DefaultLabelStyle(str string) string

func NewStatsdClient

func NewStatsdClient(host string, numMetricsPerMsg int) (client statsdClient, err error)

func NewStatsdSink

func NewStatsdSink(uri *url.URL) (sink core.DataSink, err error)

func NewStatsdSinkWithClient

func NewStatsdSinkWithClient(uri *url.URL, client statsdClient) (sink core.DataSink, err error)

func SnakeToLowerCamel

func SnakeToLowerCamel(str string) string

func SnakeToUpperCamel

func SnakeToUpperCamel(str string) string

Types

type CustomizeLabel

type CustomizeLabel func(string) string

type EtsystatsdFormatter

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

func (*EtsystatsdFormatter) Format

func (formatter *EtsystatsdFormatter) Format(prefix string, name string, labels map[string]string, customizeLabel CustomizeLabel, metricValue core.MetricValue) (res string, err error)

type Formatter

type Formatter interface {
	Format(prefix string, name string, labels map[string]string, customizeLabel CustomizeLabel, metricValue core.MetricValue) (res string, err error)
}

func NewEtsystatsdFormatter

func NewEtsystatsdFormatter() Formatter

func NewFormatter

func NewFormatter(protocolType string) (formatter Formatter, err error)

func NewInfluxstatsdFormatter

func NewInfluxstatsdFormatter() Formatter

type InfluxstatsdFormatter

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

func (*InfluxstatsdFormatter) Format

func (formatter *InfluxstatsdFormatter) Format(prefix string, name string, labels map[string]string, customizeLabel CustomizeLabel, metricValue core.MetricValue) (res string, err error)

type LabelCustomizer

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

func (LabelCustomizer) Customize

func (customizer LabelCustomizer) Customize(label string) string

type LabelStyle

type LabelStyle func(string) string

Jump to

Keyboard shortcuts

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