github.com/mackerelio/mackerel-agent-plugins@v0.89.3/mackerel-plugin-haproxy/README.md (about) 1 mackerel-plugin-haproxy 2 ===================== 3 4 HAProxy custom metrics plugin for mackerel.io agent. 5 6 ## Synopsis 7 8 ```shell 9 mackerel-plugin-haproxy [-host=<host>] [-port=<port>] [-path=<stats-path>] [-scheme=<http|https>] [-username=<username] [-password=<password>] [-tempfile=<tempfile>] 10 or 11 mackerel-plugin-haproxy [-uri=<uri>] [-username=<username] [-password=<password>] [-tempfile=<tempfile>] 12 ``` 13 14 For Basic Auth, set username. 15 16 ## Example of mackerel-agent.conf 17 18 ``` 19 [plugin.metrics.haproxy] 20 command = ["mackerel-plugin-haproxy", "-port=8088", "-path=/haproxy?hastats"] 21 ``` 22 23 ## Example of haproxy.cfg 24 25 This plugin requires to enable stats of haproxy. 26 Example configuration is as follow. 27 28 ``` 29 listen hastats 30 bind *:8088 31 mode http 32 maxconn 64 33 timeout connect 5000 34 timeout client 10000 35 timeout server 10000 36 stats enable 37 stats show-legends 38 stats uri /haproxy?hastats 39 40 # basic auth 41 stats auth admin:adminadmin 42 ```