package statsd
import "k8s.io/heapster/metrics/sinks/statsd"
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
- func NewEtsystatsdFormatter() Formatter
- func NewFormatter(protocolType string) (formatter Formatter, err error)
- func NewInfluxstatsdFormatter() Formatter
- type InfluxstatsdFormatter
- type LabelCustomizer
- type LabelStyle
Functions ¶
func DefaultLabelStyle ¶
func NewStatsdClient ¶
func NewStatsdSink ¶
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 ¶
Source Files ¶
driver.go dummy_statsd_client.go etsystatsd_formatter.go formatter.go influxstatsd_formatter.go statsd_client.go
- Version
- v1.5.4 (latest)
- Published
- Jul 26, 2018
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 4 days ago –
Tools for package owners.