mackerel-agent is an agent program to post your hosts' metrics to mackerel.io.
Go Perl Shell Makefile Other
Latest commit 9217a7b Jan 16, 2017 @daiksy daiksy committed on GitHub Merge pull request #315 from mackerelio/bump-version-0.39.2
Release version 0.39.2
Permalink
Failed to load latest commit information.
_tools use -set_exit_status option in golint Sep 7, 2016
agent close ticker in Agent.Watch not to leave goroutine when quit Dec 15, 2016
checks introduce util.RunCommandArgs Nov 10, 2016
command Merge pull request #303 from mackerelio/support-ignore-regexp-on-win Jan 12, 2017
config take typed value to t and use. Dec 2, 2016
docs/images Update image May 21, 2014
example/metrics-plugins fix ruby plugin resolving Jun 5, 2015
logging remove logging/level_string.go and disable code generation with stringer Sep 7, 2016
mackerel Uncapitalize error messages Nov 16, 2016
metrics Merge pull request #303 from mackerelio/support-ignore-regexp-on-win Jan 12, 2017
packaging update changelogs Jan 16, 2017
spec Merge remote-tracking branch 'hatena/master' into develop Nov 30, 2016
util fix win build Dec 3, 2016
version update comment for lint Oct 19, 2015
wix Revert "remove windows plugins on pluginslist" Jan 13, 2017
.gitignore add _tools/packaging/prepare-rpm-build.sh Mar 5, 2016
.goxc.json Go 1.5.1 Nov 17, 2015
.travis.yml fix .travis.yml Aug 24, 2016
CHANGELOG.md update changelogs Jan 16, 2017
CONTRIBUTING.md initial commit May 16, 2014
LICENSE initial commit May 16, 2014
LICENSE.rtf Added GUI installer for windows Feb 12, 2015
Makefile force disabling http2 for now Sep 29, 2016
README.md update README May 25, 2016
appveyor.yml Test pluginlist on ci Jan 12, 2017
build-k.bat -X flag should be taken with name=value Aug 25, 2016
build.bat -X flag should be taken with name=value Aug 25, 2016
circle.yml remove goveralls Nov 2, 2016
commands.go omit punctuation in the error messages Nov 16, 2016
commands_test.go add commands_test.go Feb 26, 2016
do_init.go Uncapitalize error messages Nov 16, 2016
do_init_test.go fix tests Nov 16, 2016
init_unix.go set PATH and LANG only in unix environment Aug 26, 2016
init_windows.go put current directory first on PATH environment Dec 6, 2016
mackerel-agent.sample.conf remove /usr/local/bin from conf Jun 21, 2016
main.go Uncapitalize error messages Nov 16, 2016
main_test.go fix tests Nov 16, 2016
pid.go change modes Nov 12, 2015
pid_darwin.go define existsPid() Jul 18, 2015
pid_test.go change modes Nov 12, 2015
pid_windows.go define existsPid() Jul 18, 2015
run.bat add run.bat and change name make.bat Nov 25, 2014
start_test.go Fix typo in messages Sep 26, 2016

README.md

mackerel-agent

agent-si

mackerel-agent is a piece of software which is installed on your hosts to collect metrics and events and send them to Mackerel where they can be visualized and monitored.

mackerel-agent executes the following tasks in the foreground:

  • registering your hosts with Mackerel
  • collecting specs and metrics from your hosts and posting them to Mackerel

Your hosts' information will be viewable on Mackerel.

As of now, mackerel-agent is officially supported to run on Amazon Linux, CentOS 5/6/7, Ubuntu 12.04LTS/14.04LTS, Debian 6/7 or Windows Server 2008 R2 and later 32-bit/64-bit environments.

SYNOPSIS

Build and Run the mackerel-agent.

make build
make run

The apikey will be required in order to run the agent.

An organization must first be created in Mackerel, then the apikey can be configured 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

To build on Windows use the command build.bat

To run on Windows use the command run.bat

Test

Test mackerel-agent to confirm it's working properly.

The agent will collect information about the host on which it has been installed.

make test

License

Copyright 2014 Hatena Co., Ltd.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.