-
reqstatd
Daemon that receive log messages (in syslog format) from webserver (fox ex. nginx), collect statistics and expose in Prometheus format.
-
reqstat
CLI utility to show metrics in console.
By default reqstatd waiting nginx log in combined (default) format on 2671/tcp port.
To send logs to reqstat add line like this to nginx configuration (for ex. /etc/nginx/conf.d/reqstat.conf
):
access_log syslog:server=localhost:2671;
And then reload nginx:
service nginx reload
On Debian Stretch:
-
Install build dependencies:
apt install -y dpkg-dev debhelper dh-systemd python3-setuptools
-
Build package:
dpkg-buildpackage -uc -us
If you looking for production solution to collect nginx metrics try nginx-module-vts, grok_exporter and mtail.