prometheus-nginx-log-exporter

command module
v0.0.0-...-a1a8483 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 20 Imported by: 0

README

prometheus-nginx-log-exporter

An nginx logs to prometheus exporter

Development

  1. init repo

    go mod tidy
    
  2. prepare config and log file

    cp ./conf/access.log.example ./conf/access.log
    cp ./conf/nginx-log-exporter.yaml.example ./conf/nginx-log-exporter.yaml
    
    # update the absolute path in the config file for the log file
    
  3. run the app

    go run . --config-file ./conf/nginx-log-exporter.yaml
    
    # to simulate the log generation, you can manually copy new lines to the log file
    

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址