Documentation ¶
Index ¶
- func CreateMetricsSink(sinkType string, config map[string]interface{}) (types.MetricsSink, error)
- func IsExclusionKeys(key string) bool
- func IsExclusionLabels(labels []string) bool
- func RegisterSink(sinkType string, creator MetricsSinkCreator)
- func SetFilterKeys(keys []string)
- func SetFilterLabels(labels []string)
- type FlushFilter
- type MetricsSinkCreator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMetricsSink ¶
func CreateMetricsSink(sinkType string, config map[string]interface{}) (types.MetricsSink, error)
CreateMetricsSink creates a MetricsSink according to sinkType
func IsExclusionKeys ¶
func IsExclusionLabels ¶
If one of the input labels matched the filter's labels, returns true
func RegisterSink ¶
func RegisterSink(sinkType string, creator MetricsSinkCreator)
RegisterSink registers the sinkType as MetricsSinkCreator
func SetFilterKeys ¶
func SetFilterKeys(keys []string)
Types ¶
type FlushFilter ¶
type MetricsSinkCreator ¶
type MetricsSinkCreator func(config map[string]interface{}) (types.MetricsSink, error)
MetricsSinkCreator creates a MetricsSink according to config
Click to show internal directories.
Click to hide internal directories.