mackerel-agent

command module
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2014 License: Apache-2.0 Imports: 13 Imported by: 0

README

mackerel-agent

agent-si

mackerel-agent is an agent to register your host to Mackerel.

mackerel-agent executes the following tasks in foreground:

  • Register a host information to Mackerel
  • Collect and post specs and metrics of a host to Mackerel periodically

You can see the host information on Mackerel.

For now, mackerel-agent is guaranteed to run only on CentOS 5/6 and Debian 6/7.

SYNOPSIS

Build and Run mackerel-agent.

make build
make run

The apikey is required to run the agent.

Create an organization in Mackerel and configure apikey in mackerel-agent.conf.

The following commands can be used instead of make.

go get -d github.com/mackerelio/mackerel-agent
go build -o build/mackerel-agent \
  -ldflags="\
    -X github.com/mackerelio/mackerel-agent/version.GITCOMMIT `git rev-parse --short HEAD` \
    -X github.com/mackerelio/mackerel-agent/version.VERSION   `git describe --tags --abbrev=0 | sed 's/^v//' | sed 's/\+.*$$//'` " \
  github.com/mackerelio/mackerel-agent
./build/mackerel-agent -conf=mackerel-agent.conf

Test

Test mackerel-agent.

The agent collects information about a host which the agent run.

make test

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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