Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseConfig ¶
Types ¶
type Config ¶
type Config struct { Filters []*FilterConfig `mapstructure:"filters"` Exporters map[string]ExporterConfig `mapstructure:"exporters"` }
var GlobalConfig Config
type ExporterConfig ¶
type ExporterConfig map[string]interface{}
type FilterConfig ¶
type FilterConfig struct { Reason string `yaml:"reason"` Message string `yaml:"message"` MinCount int32 `yaml:"minCount"` Type string `yaml:"type"` Action string `yaml:"action"` Kind string `yaml:"kind"` Namespace string `yaml:"namespace"` Name string `yaml:"name"` Service string `yaml:"service"` Exporters []string `yaml:"exporters"` // contains filtered or unexported fields }
func (*FilterConfig) Filter ¶
Filter the given event with this filter instance. Return true if the event is filtered, return false otherwise.
func (*FilterConfig) Init ¶
func (filter *FilterConfig) Init()
Click to show internal directories.
Click to hide internal directories.