datadog

package
v0.0.0-...-d7e6233 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reloader

func Reloader(reloadRequested <-chan bool, stop <-chan bool)

Reloader will reload the datadog process when a value is set on the reload channel

func WriteConfig

func WriteConfig(allServices services.Services)

WriteConfig will write out monitoring files for datadog based on the information provided in the services we have stored It will always write all config files it knows about

Types

type CheckConf

type CheckConf struct {
	InitConfig map[string]interface{} `yaml:"init_config"`
	Instances  []interface{}          `yaml:"instances"`
}

type Status

type Status struct {
	Name string
	Pid  int
	Uid  Uid
}

Status is a struct for the content of proc/*/status (only the parts we care about

func (*Status) UnmarshalText

func (status *Status) UnmarshalText(text []byte) error

UnmarshalText will turn the status file into a usable structure for us

type Uid

type Uid struct {
	Real       int
	Effective  int
	Saved      int
	Filesystem int
}

Uid is a struct for the Uid/gid lines of proc/*/status

Jump to

Keyboard shortcuts

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