collector

package
v0.0.0-...-1d9613f Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

README

package collector

This package is responsible for providing any resource and functionality needed in a check life cycle: retrieving a configuration, create a check instance, schedule a check, running a check are all operations implemented in this package or one of the subpackages.

Metadata

All the facilities to compute and post metadata informations to the backend live here, in analogy with how this worked in the Python agent. Should this code be used by any other softwares than the Agent itself at some point, the metadata package could be moved out of the collector folder and made more visible.

For further details, please refer to the specific READMEs:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

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

Collector abstract common operations about running a Check

func NewCollector

func NewCollector(paths ...string) *Collector

NewCollector create a Collector instance and sets up the Python Environment

func (*Collector) ReloadAllCheckInstances

func (c *Collector) ReloadAllCheckInstances(name string, newInstances []check.Check) ([]check.ID, error)

ReloadAllCheckInstances completely restarts a check with a new configuration

func (*Collector) ReloadCheck

func (c *Collector) ReloadCheck(id check.ID, config, initConfig check.ConfigData) error

ReloadCheck stops and restart a check with a new configuration

func (*Collector) RunCheck

func (c *Collector) RunCheck(ch check.Check) (check.ID, error)

RunCheck sends a Check in the execution queue

func (*Collector) Stop

func (c *Collector) Stop()

Stop halts any component involved in running a Check and shuts down the Python Environment

func (*Collector) StopCheck

func (c *Collector) StopCheck(id check.ID) error

StopCheck halts a check and remove the instance

Notes

Bugs

Directories

Path Synopsis
cluster
Package cluster provides core checks for cluster level checks, used by the Datadog Cluster Agent.
Package cluster provides core checks for cluster level checks, used by the Datadog Cluster Agent.
containers
Package containers provides core checks for containers and orchestrators
Package containers provides core checks for containers and orchestrators
network
Package network provides core checks for networking
Package network provides core checks for networking
Package metadata implements specific Metadata Collectors for the Agent.
Package metadata implements specific Metadata Collectors for the Agent.

Jump to

Keyboard shortcuts

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