Skip to content

/var/lib/prometheus/postfix-exporter/mail.log is growing indefintely  #118

@jbartak

Description

@jbartak

Hi, we started using this exporter for monitoring our mail servers.
It runs in very default config. We've noticed it is writing into /var/lib/prometheus/postfix-exporter/mail.log and it size if growing indefinitely.

Right now:

|Debian-11|[root@qla-prod-ue1-la-smtp-01-1 bin]$ ls -lah /var/lib/prometheus/postfix-exporter/mail.log 
-rw-r----- 1 prometheus prometheus 6.1G Jul  3 18:41 /var/lib/prometheus/postfix-exporter/mail.log

How we should address this? Logrotate?
And why it needs to duplicate config mail.log when it is available in /var/log/mail.log?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions