Skip to content

tdevelioglu/prometheus-nginx-log-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An nginx logs to prometheus exporter

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages