log

package
v0.0.2-0...-4ce78c8 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 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:"metricName"`  //
	FilePath     string            `json:"filePath"`    //
	Pattern      string            `json:"pattern"`     //
	TagsPattern  map[string]string `json:"tagsPattern"` //
	Func         string            `json:"func"`        // count(c), histogram(h)
	Encoding     string            `json:"encoding"`    //
	ExcludePaths []string          `json:"excludePath"` //
	TailingMode  string            `json:"tailingMode"` //
}

Jump to

Keyboard shortcuts

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