log

package
v0.0.0-...-341d4b1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRegistryFilename = "registry-plugins-log.json"
)

Variables

This section is empty.

Functions

func NewChProvider

func NewChProvider(msgCh chan *message.Message) pipeline.Provider

NewChProvider returns a new chProvider

Types

type Agent

type Agent struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent() (*Agent, error)

type Check

type Check struct {
	sync.RWMutex
	core.CheckBase
	// contains filtered or unexported fields
}

Check doesn't need additional fields

func (*Check) Cancel

func (c *Check) Cancel()

func (*Check) Configure

func (c *Check) Configure(rawInstance integration.Data, rawInitConfig integration.Data, source string) error

Configure the Prom check

func (*Check) Run

func (c *Check) Run() error

Run executes the check

type InstanceConfig

type InstanceConfig struct {
	MetricName   string            `json:"metric_name"`  //
	FilePath     string            `json:"file_path"`    //
	Pattern      string            `json:"pattern"`      //
	TagsPattern  map[string]string `json:"tags_pattern"` //
	Func         string            `json:"func"`         // count(c), histogram(h)
	Encoding     string            `json:"encoding"`     //
	ExcludePaths []string          `json:"exclude_path"` //
	TailingMode  string            `json:"tailing_mode"` //
}

Jump to

Keyboard shortcuts

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