fstab / grok_exporter

Export Prometheus metrics from arbitrary unstructured log data.
Apache License 2.0
891 stars 152 forks source link

Is it possible to use readall parameter for separate paths? #155

Open lprzybylowicz opened 3 years ago

lprzybylowicz commented 3 years ago

Is it possible to use readall parameter for separate paths? I dont see that in documentation. Te following configuration doesnt work:

input: type: file paths:

The cloudinit_errors metric doesn`t read whole /var/log/host-logs/cloud-init.log file.

fstab commented 3 years ago

readall can only be set on a global level, not per metric. It's intended for debugging, because in production you usually want to see log events that are currently happening, and not events that have been logged since the last logrotate.

lprzybylowicz commented 3 years ago

Thank you for the answer. But in the above case - cloud-init is run before grok-exporter, so there is no way for the grok to know any errors that happened before.