# Parameters

**Simple mode**

<table border="1" id="bkmrk-haproxy-simple-params" style="width: 66.2963%;"><tbody><tr><td style="width: 21.7907%;">--urls</td><td style="width: 77.9359%;">HAProxy stats endpoint URLs, comma-separated. Each URL will create one agent.</td></tr><tr><td style="width: 21.7907%;">--user</td><td style="width: 77.9359%;">username if the HAProxy endpoint requires basic authentication, optional</td></tr><tr><td style="width: 21.7907%;">--password</td><td style="width: 77.9359%;">password if the HAProxy endpoint requires basic authentication, optional</td></tr><tr><td style="width: 21.7907%;">--ssl</td><td style="width: 77.9359%;">whether the URL has an HTTPS certificate to be verified, optional</td></tr><tr><td style="width: 21.7907%;">--prefix</td><td style="width: 77.9359%;">prefix for the module names, optional</td></tr><tr><td style="width: 21.7907%;">--transfer_mode</td><td style="width: 77.9359%;">data transfer mode (native or tentacle), optional</td></tr><tr><td style="width: 21.7907%;">--tentacle_ip</td><td style="width: 77.9359%;">tentacle IP, optional</td></tr><tr><td style="width: 21.7907%;">--tentacle_port</td><td style="width: 77.9359%;">tentacle port, optional</td></tr><tr><td style="width: 21.7907%;">--interval</td><td style="width: 77.9359%;">monitoring interval in seconds, optional</td></tr><tr><td style="width: 21.7907%;">--allow_list</td><td style="width: 77.9359%;">regular expression to include only modules whose name matches, optional</td></tr><tr><td style="width: 21.7907%;">--deny_list</td><td style="width: 77.9359%;">regular expression to exclude modules whose name matches, optional</td></tr><tr><td style="width: 21.7907%;">--monitor_frontends</td><td style="width: 77.9359%;">monitor frontend rows (type=0), optional</td></tr><tr><td style="width: 21.7907%;">--monitor_backends</td><td style="width: 77.9359%;">monitor backend rows (type=1), optional</td></tr><tr><td style="width: 21.7907%;">--monitor_servers</td><td style="width: 77.9359%;">monitor server rows (type=2), optional</td></tr></tbody></table>

**Advanced mode**

<table border="1" id="bkmrk-haproxy-advanced-params"><tbody><tr><td>--conf</td><td>path to the configuration file</td></tr><tr><td>--conf_targets</td><td>path to the file with the HAProxy URLs (mandatory when using --conf)</td></tr></tbody></table>

**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**

```ini
[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
```