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.
In some use cases, it may be useful to change the hardcoded
tail.Config
settings. For instance, when runningpostfix_exporter
as a sidecar container the log file may not yet be created by the mainpostfix
container upon startingpostfix_exporter
and as a result we needed to haveMustExist
set tofalse
. It is also useful to keep logs from thetail
module for debugging purposes.This PR introduces the ability to configure some of the
tail.Config
settings by exposing them as command line flag tofileLogSourceFactory
.