Documentation
¶
Index ¶
- Constants
- func Compile(filters []string) glob.Glob
- func MatchesAllTags(matchers map[string]glob.Glob, tags map[string]string) bool
- func MatchesTags(matchers map[string]glob.Glob, tags map[string]string) bool
- func MultiCompile(filters map[string][]string) map[string]glob.Glob
- func MultiSetCompile(filters []map[string][]string) []map[string]glob.Glob
- type Config
- type Filter
Constants ¶
View Source
const ( MetricWhitelist = "metricWhitelist" MetricBlacklist = "metricBlacklist" MetricTagWhitelist = "metricTagWhitelist" MetricTagBlacklist = "metricTagBlacklist" TagInclude = "tagInclude" TagExclude = "tagExclude" )
Variables ¶
This section is empty.
Functions ¶
func MatchesAllTags ¶ added in v1.0.4
func MatchesTags ¶ added in v1.0.4
func MultiCompile ¶ added in v1.0.0
Types ¶
type Config ¶
type Config struct { // List of glob pattern strings. Only metrics with names matching this list are reported. MetricAllowList []string `yaml:"metricAllowList"` // List of glob pattern strings. Metrics with names matching this list are dropped. MetricDenyList []string `yaml:"metricDenyList"` // List of glob pattern strings. Only metrics containing tag keys matching the list will be reported. MetricTagAllowList map[string][]string `yaml:"metricTagAllowList"` // List of glob pattern strings. Metrics containing these tag keys will be dropped. MetricTagDenyList map[string][]string `yaml:"metricTagDenyList"` // List of glob pattern strings. Tags with matching keys will be included. All other tags will be excluded. TagInclude []string `yaml:"tagInclude"` // List of glob pattern strings. Tags with matching keys will be excluded. TagExclude []string `yaml:"tagExclude"` // Deprecated: use MetricAllowList instead MetricWhitelist []string `yaml:"metricWhitelist"` // Deprecated: use MetricDenyList instead MetricBlacklist []string `yaml:"metricBlacklist"` // Deprecated: use MetricTagAllowList instead MetricTagWhitelist map[string][]string `yaml:"metricTagWhitelist"` // Deprecated: use MetricTagDenyList instead MetricTagBlacklist map[string][]string `yaml:"metricTagBlacklist"` }
Configuration for filtering metrics. All the filtering options are applied at the end after specified prefixes etc are applied.
Click to show internal directories.
Click to hide internal directories.