Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.3 KB

README.md

File metadata and controls

32 lines (24 loc) · 1.3 KB

goaccess-prometheus-exporter

Prometheus exporter for metrics provided by GoAccess.

It´s currently configured to work with Nginx Proxy Manager but can easily be reconfigured to work with any other access logs.

Setup

  1. Download this project to your local file system
git clone https://github.com/FranzDeschler/goaccess-prometheus-exporter
  1. Adjust the GoAccess call in the /resources/run_goaccess.sh script to your needs. See the GoAccess man page for parameters.

  2. In the docker-compose.yml file, adjust the following settings:

    • LOG_FILES environment variable: a comma separated list of file names. Wildcards like "*.log" are also possible.
    • TIMEZONE environment variable: A canonical timezone name like "Europe/Berlin". Default is "Etc/UTC".
    • port mapping
    • replace the LOG_DIRECTORY placeholder with the directory where your log files are that you want to monitor
  3. Create and run the Docker container.

docker-compose up

Counter Reset

Note that most metrics provided by this exporter are counters. Those counters will be reset as soon as log rotation is applied to the log files you are monitoring. If your log files are rotated daily, the counters will also be reset daily.