command

package
v0.25.1-k Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2015 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadHostID added in v0.20.0

func LoadHostID(root string) (string, error)

LoadHostID loads hostID

func NewAgent added in v0.16.0

func NewAgent(conf *config.Config) *agent.Agent

NewAgent creates a new instance of agent.Agent from its configuration conf.

func RemoveIDFile added in v0.20.0

func RemoveIDFile(root string) error

RemoveIDFile removes idfile

func Run

func Run(c *Context, termCh chan struct{}) int

Run starts the main metric collecting logic and this function will never return.

func RunOnce added in v0.15.0

func RunOnce(conf *config.Config) error

RunOnce collects specs and metrics, then output them to stdout.

Types

type Context added in v0.19.0

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

Context context object

func Prepare added in v0.8.0

func Prepare(conf *config.Config) (*Context, error)

Prepare sets up API and registers the host data to the Mackerel server. Use returned values to call Run().

func (*Context) UpdateHostSpecs added in v0.19.0

func (c *Context) UpdateHostSpecs()

UpdateHostSpecs updates the host information that is already registered on Mackerel.

Jump to

Keyboard shortcuts

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