mackerel-plugin-apache2

command
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2014 License: Apache-2.0 Imports: 10 Imported by: 0

README

mackerel-plugin-apache2

Description

Get apache "server-status" metrics for Mackerel and Sensu.

Usage

Set up your apache server

First, you should enabled mod_status module, and configure apache config file. For example is below.

<VirtualHost 127.0.0.1:1080>
    <Location /server-status>
        SetHandler server-status
    </Location>
</VirtualHost>
Build this program

Next, build this program.

go get github.com/mackerelio/mackerel-agent-plugins/mackerel-plugin-apache2
cd $GO_HOME/src/github.com/mackerelio/mackerel-agent-plugins/mackerel-plugin-apache2
go test
go build
Execute this plugin

And, you can execute this program :-)

./mackerel-plugin-apache2 -p 1080
Add mackerel-agent.conf

Finally, if you want to get apache2 metrics via Mackerel, please edit mackerel-agent.conf. For example is below.

[plugin.metrics.apache2]
command = "/path/to/mackerel-plugin-apache2 -p 1080"
type = "metric"

For more information

Please execute 'mackerel-plugin-apache2 -h' and you can get command line options.

References

This program to use as reference from Percona Monitoring Plugins for Cacti.

Author

Yuichiro Saito

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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