core

package
v0.0.0-...-29da2f4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	Sessions []*SessionInstance
	Sources  []*SourceInstance
}

func NewRunner

func NewRunner(ctx context.Context, conf *config.Config) (*Runner, error)

func (*Runner) Run

func (runner *Runner) Run(ctx context.Context, ch chan<- metric.Datum) error

Run configures all plugins and runs the Sources. Metrics are sent to the given channel. The channel is _not_ closed by Run.

type SessionInstance

type SessionInstance struct {
	Name       string
	Scopes     []string
	MetricTags map[string]string
	Session    registry.Session
}

type SourceInstance

type SourceInstance struct {
	Name       string
	MetricTags map[string]string
	Plugin     registry.Source
}

Jump to

Keyboard shortcuts

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