May 2019
Intermediate to advanced
442 pages
11h 36m
English
In our static infrastructure test environment, we can validate the configuration of grok_exporter by connecting to the target01 instance as shown here:
cd ./chapter06/vagrant ssh target01
Outputting the configuration of the provided systemd unit file is shown in the following code snippet:
vagrant@target01:~$ systemctl cat grok-exporter
Just as with the mtail exporter, we need to run grok_exporter with Group=adm so that it has access to syslog without requiring being run as a privileged user. We can see all the required arguments for the grok_exporter service in the following snippet from the unit file, including the path to the configuration file mentioned before:
...Group=admExecStart=/usr/bin/grok_exporter -config /etc/grok_exporter/config.yml ...
Read now
Unlock full access