philyuchkoff / HAProxy-2-RPM-builder

Build latest HAProxy binary for CentOS/RHEL 6/7/8/9 with prometheus metrics support
GNU General Public License v3.0
61 stars 29 forks source link

Rpm wiht LUA and PROMEX #26

Closed npoojary closed 5 months ago

npoojary commented 5 months ago

We need to build rpm to work with LUA and PROMEX. Would be helpful if you update the code to build with both the features. Thanks.

npoojary commented 5 months ago

I am able to build rpm by setting USE_PROMETHEUS?=1 in Makefile and sudo make USE_LUA=1

philyuchkoff commented 5 months ago

you can build with: sudo make USE_LUA=1 USE_PROMETHEUS=1

after install, check: haproxy -vvv

you have to see: ... Built with Lua version : Lua 5.4.4 ... Built with the Prometheus exporter as a service ...

Снимок экрана 2024-02-02 в 19 36 25

philyuchkoff commented 5 months ago

@npoojary please check and write the result

npoojary commented 5 months ago

Thank you I am able to see both Lua and Prometheus exporter.

haproxy -vvv | grep Built Built with multi-threading support (MAX_TGROUPS=16, MAX_THREADS=256, default=2). Built with OpenSSL version : OpenSSL 1.0.2k-fips 26 Jan 2017 Built with Lua version : Lua 5.4.4 Built with network namespace support. Built with the Prometheus exporter as a service Built with zlib version : 1.2.7 Built with transparent proxy support using: IP_TRANSPARENT IPV6_TRANSPARENT IP_FREEBIND Built with PCRE version : 8.32 2012-11-30 Built with gcc compiler version 7.3.1 20180712 (Red Hat 7.3.1-17)