Re: Bug#921351: [pkg-go] Bug#921351: prometheus-postfix-exporter: Init script missing
- To: Michael Stapelberg <stapelberg@debian.org>, Daniel Swarbrick <daniel.swarbrick@profitbricks.com>, "debian-go@lists.debian.org" <debian-go@lists.debian.org>
- Subject: Re: Bug#921351: [pkg-go] Bug#921351: prometheus-postfix-exporter: Init script missing
- From: Martín Ferrari <tincho@tincho.org>
- Date: Mon, 11 Feb 2019 11:08:43 +0000
- Message-id: <[🔎] f8b8eaa0-8d4d-94d7-a162-f08dd7886291@tincho.org>
- In-reply-to: <e0ac3ed6-d33f-c18c-49e7-e9437e1f0d04@tincho.org>
- References: <20190204143000.8960.46439.reportbug@kitterma-E6430> <CANnVG6nEKzBvskJ1-ivTLmJ0xV2wCoZ7vKMEXmdnpcDJBJO_7A@mail.gmail.com> <69EAAC13-8881-4199-BAD9-AE487BB80201@kitterman.com> <CANnVG6k=dzLJ8y+JoPGWX4wZm5e9tnaz7Hi2q34gHOsSKafEYw@mail.gmail.com> <7213EFA5-73FB-4450-90C4-A76642B15070@kitterman.com> <CANnVG6mfqiHnDsNHuEtS8eLUZG_2rESU0wZpxtp-BjYCKBYB2g@mail.gmail.com> <20190204143000.8960.46439.reportbug@kitterma-E6430> <A13EE266-CD74-46D4-99F4-6639455D5F51@kitterman.com> <20190204143000.8960.46439.reportbug@kitterma-E6430> <e0ac3ed6-d33f-c18c-49e7-e9437e1f0d04@tincho.org>
Just a heads up.
Since there was no reply to this email, and with the soft freeze looming
over our heads, last night I went ahead and fixed this bug, which
required doing some substantive changes to the package. I hope it is OK
for all involved.
On 07/02/2019 17:01, Martín Ferrari wrote:
> Daniel, et al.
>
>
> I was preparing a fix for this by copying some support scripts from
> other exporters when I noticed a couple of things, and wanted to check
> with you before making any change.
>
> This exporter is running with user postfix, while all the others use the
> prometheus user. I understand that you need to access the queue
> directly, but this could be done by granting the postqueue group when
> starting the process instead.
>
> Another thing is that this requires a special log configuration
> (duplicating all postfix entries to a new file, and making that file
> writable by the user this exporter runs as), which probably should be
> documented in a Debian readme, and I have no idea how to do this with
> systemd? Also, I'd suggest moving that log to /var/{lib,log}/prometheus
>
>
> Honestly, back in the day I had looked at this exporter and decided it
> was not great because of the log requirement, and started using mtail
> for monitoring postfix.
>
--
Martín Ferrari (Tincho)
Reply to: