Skip to main content

Parameters

Simple mode

--urlsHAProxy stats endpoint URLs, comma-separated. Each URL will create one agent.
--userusername if the HAProxy endpoint requires basic authentication, optional
--passwordpassword if the HAProxy endpoint requires basic authentication, optional
--sslwhether the URL has an HTTPS certificate to be verified, optional
--prefixprefix for the module names, optional
--transfer_modedata transfer mode (native or tentacle), optional
--tentacle_iptentacle IP, optional
--tentacle_porttentacle port, optional
--intervalmonitoring interval in seconds, optional
--allow_listregular expression to include only modules whose name matches, optional
--deny_listregular expression to exclude modules whose name matches, optional
--monitor_frontendsmonitor frontend rows (type=0), optional
--monitor_backendsmonitor backend rows (type=1), optional
--monitor_serversmonitor server rows (type=2), optional

Advanced mode

--confpath to the configuration file
--conf_targetspath to the file with the HAProxy URLs (mandatory when using --conf)

Configuration file (--conf)

username= username if the HAProxy endpoint requires basic authentication, optional
password= password if the HAProxy endpoint requires basic authentication, optional
verify_ssl= whether the URL has an HTTPS certificate to be verified, optional
prefix= prefix for the module names, optional
transfer_mode= data transfer mode (native or tentacle), optional
tentacle_ip= tentacle IP, optional
tentacle_port= tentacle port, optional
agents_group= name of the agent group the created agents will be assigned to, optional
agents_group_id= ID of the agent group the created agents will be assigned to, optional
interval= monitoring interval in seconds, optional
allow_list= regular expression to include only modules whose name matches, optional
deny_list= regular expression to exclude modules whose name matches, optional
monitor_frontends= monitor frontend rows (type=0), optional
monitor_backends= monitor backend rows (type=1), optional
monitor_servers= monitor server rows (type=2), optional

Example

[CONF]
username=admin
password=12345
verify_ssl=true
prefix=haproxy_
transfer_mode=native
tentacle_ip=127.0.0.1
tentacle_port=41121
interval=300
allow_list=
deny_list=.*_wredis|.*_wretr
monitor_frontends=true
monitor_backends=true
monitor_servers=true

Targets file (--conf_targets):

http://192.168.0.10:8404/stats
http://192.168.0.11:8404/stats