mackerel-plugin-haproxy

command
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

README

mackerel-plugin-haproxy

HAProxy custom metrics plugin for mackerel.io agent.

Synopsis

mackerel-plugin-haproxy [-host=<host>] [-port=<port>] [-path=<stats-path>] [-scheme=<http|https>] [-username=<username] [-password=<password>] [-tempfile=<tempfile>]
or
mackerel-plugin-haproxy [-uri=<uri>] [-username=<username] [-password=<password>] [-tempfile=<tempfile>]

For Basic Auth, set username.

Example of mackerel-agent.conf

[plugin.metrics.haproxy]
command = "/path/to/mackerel-plugin-haproxy -port=8000"

Example of haproxy.conf

This plugin requires to enable stats of haproxy. Example configuration is as follow.

listen hastats *:8088
    mode http
    maxconn 64
    timeout connect 5000
    timeout client 10000
    timeout server 10000
    stats enable
    stats show-legends
    stats uri /haproxy?hastats

    # basic auth
    stats auth admin:adminadmin

See haproxy_test.go for example configuration.

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