patterns

package
v2.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matcher

type Matcher struct {
	// contains filtered or unexported fields
}

Matcher checks metrics against known patterns

func NewMatcher

func NewMatcher(logger moira.Logger, metrics *graphite.FilterMetrics, patternsStorage *filter.PatternStorage) *Matcher

NewMatcher creates pattern matcher

func (*Matcher) Start

func (m *Matcher) Start(matchersCount int, lineChan <-chan []byte) chan *moira.MatchedMetric

Start spawns pattern matcher workers

type RefreshPatternWorker

type RefreshPatternWorker struct {
	// contains filtered or unexported fields
}

RefreshPatternWorker realization

func NewRefreshPatternWorker

func NewRefreshPatternWorker(database moira.Database, metrics *graphite.FilterMetrics, logger moira.Logger, patternStorage *filter.PatternStorage) *RefreshPatternWorker

NewRefreshPatternWorker creates new RefreshPatternWorker

func (*RefreshPatternWorker) Start

func (worker *RefreshPatternWorker) Start() error

Start process to refresh pattern tree every second

func (*RefreshPatternWorker) Stop

func (worker *RefreshPatternWorker) Stop() error

Stop stops update pattern tree

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL