Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSkipMetric = errors.New("skip metric")
ErrSkipMetric is returned when parsing to indicate skipping
Functions ¶
This section is empty.
Types ¶
type IdentityMetricDeconstructor ¶
type IdentityMetricDeconstructor struct { }
IdentityMetricDeconstructor returns a zero dimension gauge of a metric
func (*IdentityMetricDeconstructor) Parse ¶
func (parser *IdentityMetricDeconstructor) Parse(originalMetric string) (string, datapoint.MetricType, map[string]string, error)
Parse returns the zero dimension gauge
type MetricDeconstructor ¶
type MetricDeconstructor interface {
Parse(originalMetric string) (newMetric string, mtype datapoint.MetricType, dimension map[string]string, err error)
}
MetricDeconstructor is an object that can deconstruct a single metric name into what dimensions it should represent. Useful for compatibility with non dimensioned stores, like graphite
type NilDeconstructor ¶
type NilDeconstructor struct{}
NilDeconstructor is a parser that always skips a metric
func (*NilDeconstructor) Parse ¶
func (m *NilDeconstructor) Parse(originalMetric string) (string, datapoint.MetricType, map[string]string, error)
Parse always returns an error
Click to show internal directories.
Click to hide internal directories.