Documentation ¶
Index ¶
- func DefaultLabelStyle(str string) string
- func NewStatsdClient(host string, numMetricsPerMsg int) (client statsdClient, err error)
- func NewStatsdSink(uri *url.URL) (sink core.DataSink, err error)
- func NewStatsdSinkWithClient(uri *url.URL, client statsdClient) (sink core.DataSink, err error)
- func SnakeToLowerCamel(str string) string
- func SnakeToUpperCamel(str string) string
- type CustomizeLabel
- type EtsystatsdFormatter
- type Formatter
- type InfluxstatsdFormatter
- type LabelCustomizer
- type LabelStyle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultLabelStyle ¶
func NewStatsdClient ¶
func NewStatsdSinkWithClient ¶
func SnakeToLowerCamel ¶
func SnakeToUpperCamel ¶
Types ¶
type CustomizeLabel ¶
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 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 ¶
Click to show internal directories.
Click to hide internal directories.