anchor.diff:          name: exporter-config
   ----
   
  -In this example, the configuration file is passed via the `exporter-config` ConfigMap. This might look like follows:
  +In this example, the configuration file is passed via the `exporter-config`
  +ConfigMap. This might look like follows:
   
   [source,yaml]
   ----
  
positive.code:     $ systemctl enable prometheus-nginxlog-exporter
      $ systemctl start prometheus-nginxlog-exporter
  
  The shipped unit file expects the binary to be located in `/usr/sbin/prometheus-nginxlog-exporter`
  (if you sideload the exporter without using your package manager, you might want to put it to
  `/usr/local`, instead) and the configuration file in `/etc/prometheus-nginxlog-exporter.hcl`. Adjust
  to your own needs.
  
  ### Docker
  
  You can also run this exporter from the Docker image `quay.io/martinhelmich/prometheus-nginxlog-exporter`:
  
      $ docker run --name nginx-exporter -v logs:/mnt/nginxlogs -p 4040:4040 quay.io/martinhelmich/prometheus-nginxlog-exporter mnt/nginxlogs/access.log
  
  Command-line flags and arguments can simply be appended to the `docker run` command, for example to use a
  configuration file:
  
      $ docker run --name nginx-exporter -p 4040:4040 -v logs:/mnt/nginxlogs -v /path/to/config.hcl:/etc/prometheus-nginxlog-exporter.hcl quay.io/martinhelmich/prometheus-nginxlog-exporter -config-file /etc/prometheus-nginxlog-exporter.hcl
  
  ### Kubernetes
  
  If you run a logfile-generating service (be it NGINX, or anything that generates similar access log files) in Kubernetes, you can run the exporter as a sidecar along your "main" container within the same pod.
  
  The following example shows you how to deploy the exporter as a sidecar, accepting logs from the main container via syslog:
  
  [source,yaml]
  ----
  
negative.code: image:https://img.shields.io/github/license/martin-helmich/prometheus-nginxlog-exporter[GitHub]
  image:https://img.shields.io/badge/donate-PayPal-yellow[link="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SEARYHPVS9U5N&source=url", Donate]
  
  Helper tool that continuously reads an NGINX log file (or any kind of similar log file) and exports metrics to https://prometheus.io/[Prometheus].
  
  [discrete]
  == Contents
  