HAProxy is a popular open source software TCP/HTTP Load Balancer. This module collects logs generated by HAProxy.
Setup & Configuration
The HAProxy module is included with the Atatus Infra agent by default, please follow the below steps to enable.
Add the following lines in the file
/etc/atatus-infra-agent/atatus.yml
.copylogs_enabled: true
Copy the HAProxy example configuration file.
copycd /etc/atatus-infra-agent/conf.d/haproxy.d/ sudo cp haproxy.yml.template haproxy.yml
Update the file
/etc/atatus-infra-agent/conf.d/haproxy.d/haproxy.yml
with below configurations.copy# Log section logs: # - type : (mandatory) type of log input source (log) - type: log
copy# If you have custom haproxy log path, you can use below syntax # - type: (mandatory) type of log input source (log) # paths: (mandatory) Set paths if type is file # service: (mandatory) name of the service owning the log # source: (mandatory) attribute that defines which integration is sending the log # Log section logs: - type: log paths: - /var/log/haproxy.log source: haproxy service: haproxy
Restart the atatus infrastructure agent.
copysudo service atatus-infra-agent restart