Documentation ¶
Overview ¶
Package filters has logic describing the filtering of unwanted metrics. Filters are configured from the agent configuration file and is intended to be passed into each monitor for use if it sends datapoints on its own.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicFilter ¶
type BasicFilter struct {
// contains filtered or unexported fields
}
BasicFilter is an exclusionary filter that is designed to filter SignalFx datapoint objects. It can filter based on the monitor type, dimensions, or the metric name. It supports both static, globbed, and regex patterns for filter values. If dimensions are specifed, they must all match for the datapoint to match. If multiple metric names are given, only one must match for the datapoint to match the filter since datapoints can only have one metric name.
type Filter ¶
type Filter interface { // Matches takes a datapoint and returns whether it is matched by the // filter Matches(*datapoint.Datapoint) bool }
Filter describes any datapoint filter