Documentation ¶
Overview ¶
Package filtermetric is a helper package for processing metrics.
Index ¶
Constants ¶
View Source
const ( Regexp = MatchType(filterset.Regexp) Strict = MatchType(filterset.Strict) Expr MatchType = "expr" )
These are the MatchTypes that users can specify for filtering `pdata.Metric`s.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatchProperties ¶
type MatchProperties struct { // MatchType specifies the type of matching desired MatchType MatchType `mapstructure:"match_type"` // RegexpConfig specifies options for the Regexp match type RegexpConfig *regexp.Config `mapstructure:"regexp"` // MetricNames specifies the list of string patterns to match metric names against. // A match occurs if the metric name matches at least one string pattern in this list. MetricNames []string `mapstructure:"metric_names"` // Expressions specifies the list of expr expressions to match metrics against. // A match occurs if any datapoint in a metric matches at least one expression in this list. Expressions []string `mapstructure:"expressions"` }
MatchProperties specifies the set of properties in a metric to match against and the type of string pattern matching to use.
type MatchType ¶ added in v0.14.0
type MatchType string
MatchType specifies the strategy for matching against `pdata.Metric`s. This is distinct from filterset.MatchType which matches against metric (and tracing) names only. To support matching against metric names and `pdata.Metric`s, filtermetric.MatchType is effectively a superset of filterset.MatchType.
Click to show internal directories.
Click to hide internal directories.