Hsn723 / postfix_exporter

A Prometheus exporter for Postfix.
Apache License 2.0
8 stars 0 forks source link

Logfile config #8

Closed Hsn723 closed 7 months ago

Hsn723 commented 7 months ago

In some use cases, it may be useful to change the hardcoded tail.Config settings. For instance, when running postfix_exporter as a sidecar container the log file may not yet be created by the main postfix container upon starting postfix_exporter and as a result we needed to have MustExist set to false. It is also useful to keep logs from the tail module for debugging purposes.

This PR introduces the ability to configure some of the tail.Config settings by exposing them as command line flag to fileLogSourceFactory.