filter

package
v2.3.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled         bool
	Listen          string
	RetentionConfig string
}

Config is filter configuration settings

type PatternStorage

type PatternStorage struct {
	PatternTree *patternNode
	// contains filtered or unexported fields
}

PatternStorage contains pattern tree

func NewPatternStorage

func NewPatternStorage(database moira.Database, metrics *graphite.FilterMetrics, logger moira.Logger) (*PatternStorage, error)

NewPatternStorage creates new PatternStorage struct

func (*PatternStorage) ProcessIncomingMetric

func (storage *PatternStorage) ProcessIncomingMetric(lineBytes []byte) *moira.MatchedMetric

ProcessIncomingMetric validates, parses and matches incoming raw string

func (*PatternStorage) RefreshTree

func (storage *PatternStorage) RefreshTree() error

RefreshTree builds pattern tree from redis data

type Storage

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

Storage struct to store retention matchers

func NewCacheStorage

func NewCacheStorage(logger moira.Logger, metrics *graphite.FilterMetrics, reader io.Reader) (*Storage, error)

NewCacheStorage create new Storage

func (*Storage) EnrichMatchedMetric

func (storage *Storage) EnrichMatchedMetric(buffer map[string]*moira.MatchedMetric, m *moira.MatchedMetric)

EnrichMatchedMetric calculate retention and filter cached values

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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