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:     }
  ----
  
  The config file instructs the exporter to accept log input via syslog. To forward logs to the exporter, just instruct your main container to send its access logs via syslog to `127.0.0.1:5531` (which works, since the main container and the sidecar share their network namespace).
  
  == Frequently Asked Questions
  
  
negative.code: 
      ./prometheus-nginxlog-exporter -config-file /path/to/config.hcl
  
  Installation
  ------------
  
  There are multiple ways to install this exporter.
  
  === Docker
  
  Docker images for this exporter are available at the quay.io and pkg.github.com
  registries:
  
    - `quay.io/martinhelmich/prometheus-nginxlog-exporter:v1`
    - `docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:v1`
  
  Have a look at the https://github.com/martin-helmich/prometheus-nginxlog-exporter/releases[releases page]
  to see the available versions and how to pull their images. In general, I would
  recommend using the `v1` tag instead of `latest`.
  
  Run the exporter as follows (adjust paths like `/path/to/logs` and
  `/path/to/config` to your own needs):
  
      $ docker run --name nginx-exporter -v /path/to/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 /path/to/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
  
  === DEB and RPM packages
  
  Each https://github.com/martin-helmich/prometheus-nginxlog-exporter/releases[release]
  from 1.5.1 or newer provides both DEB and RPM packages.
  
      $ wget https://github.com/martin-helmich/prometheus-nginxlog-exporter/releases/download/v1.6.0/prometheus-nginxlog-exporter_1.6.0_linux_amd64.deb
      $ apt install prometheus-nginxlog-exporter_1.6.0_linux_amd64.deb
  
  The package come with a dependency on systemd and configure the exporter to be
  running automatically:
  
      $ systemctl status prometheus-nginxlog-exporter
      $ # systemctl disable prometheus-nginxlog-exporter
      $ # systemctl enable prometheus-nginxlog-exporter
  
  The packages drop a configuration file to `/etc/prometheus-nginxlog-exporter.hcl`
  which you can adjust to your own needs.
  
  ### Manual installation, with systemd
  
  If you do not want to use one of the pre-built packages, you can download the
  binary itself and manually configure systemd to start it. You can find an
  example unit file for this service
  https://github.com/martin-helmich/prometheus-nginxlog-exporter/blob/master/res/package/prometheus-nginxlog-exporter.service[in this repository].
  Simply copy the unit file to `/etc/systemd/system`:
  
  