[Bug 274194] sysutils/loki: New rc.d file for promtail
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 274194] sysutils/loki: New rc.d file for promtail"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Oct 2023 18:49:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274194 --- Comment #1 from Christopher Beppler <freebsd@funzi.org> --- Hi Eren, Thank you for taking initiative! I like the idea of also providing a rc script for promtail. Since we shouldn't deviate from upstream too much, I'd propose to use https://github.com/grafana/loki/blob/v2.9.1/clients/cmd/promtail/promtail-local-config.yaml as default configuration (adapted to FreeBSD paths where necessary, see below) I'd see positions.yaml somewhere around /usr/local/var/db/loki. You're right, it's a best a huge performance penalty if positions.yaml state file gets lost on reboot. If promtail is later configured by the user to run as root is up to the user. Alternatively, the loki user could be put into the right groups to get read access to the log files. That's not in scope of this port - we try to stay as close as possible to upstream. If we can get the upstream promtail-local-config.yaml running, we're good. The user will have to read through the documentation to configure it properly anyways :-). I plan to work on the version bump in the next days. If you attach a patch for the current ports version (2.8.1), I am happy to submit it all together. Thanks Christopher -- You are receiving this mail because: You are the assignee for the bug.