command

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2014 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const METRICS_POST_BUFFER_SIZE = 30 // max numbers of requests stored in buffer queue.
View Source
const METRICS_POST_DEQUEUE_DELAY = 30 * time.Second // delay for dequeuing from buffer queue
View Source
const METRICS_POST_RETRY_DELAY = 1 * time.Minute // delay for retring a request that causes errors
View Source
const METRICS_POST_RETRY_MAX = 10 // max numbers of retries for a request that causes errors

Variables

This section is empty.

Functions

func IdFilePath added in v0.6.1

func IdFilePath(root string) string

func LoadHostId added in v0.6.1

func LoadHostId(root string) (string, error)

func Prepare added in v0.8.0

func Prepare(conf config.Config) (*mackerel.API, *mackerel.Host)

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

func Run

func Run(conf config.Config, api *mackerel.API, host *mackerel.Host)

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

func SaveHostId added in v0.6.1

func SaveHostId(root string, id string) error

func UpdateHostSpecs added in v0.8.0

func UpdateHostSpecs(conf config.Config, api *mackerel.API, host *mackerel.Host)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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