diff --git a/postfix_exporter.go b/postfix_exporter.go index 6a03328..b9683b1 100644 --- a/postfix_exporter.go +++ b/postfix_exporter.go @@ -613,7 +613,7 @@ func NewPostfixExporter(showqPath string, logfilePath string, journal *Journal, func (e *PostfixExporter) Describe(ch chan<- *prometheus.Desc) { ch <- postfixUpDesc - if e.tailer == nil { + if e.tailer == nil && e.journal == nil { return } ch <- e.cleanupProcesses.Desc() @@ -701,7 +701,7 @@ func (e *PostfixExporter) Collect(ch chan<- prometheus.Metric) { e.showqPath) } - if e.tailer == nil { + if e.tailer == nil && e.journal == nil { return } ch <- e.cleanupProcesses