Skip to content

Collect and expose metrics from webserver logs (for ex. nginx)

License

Notifications You must be signed in to change notification settings

seleznev/reqstat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reqstat

Components

  • 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.

How to send nginx logs to reqstatd

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

How to build deb package

On Debian Stretch:

  1. Install build dependencies:

    apt install -y dpkg-dev debhelper dh-systemd python3-setuptools
    
  2. Build package:

    dpkg-buildpackage -uc -us
    

Alternatives

If you looking for production solution to collect nginx metrics try nginx-module-vts, grok_exporter and mtail.

About

Collect and expose metrics from webserver logs (for ex. nginx)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published