Created attachment 245624 [details] 0001: update loki to 2.9.1 Update loki to 2.9.1 This also adds a new rc.d file for promtail (based on what has been submitted in #274194) Both patches have to be applied to give credit to Eren where credit is due :-).
Created attachment 245625 [details] 0002: add rc.d script for promtail
Thank you for the submission. Check if you can switch to GO_MODULE in the future. This avoids having to list all the dependencies manually. Is there a changelog for this update?
I tried to migrate to go:modules but failed - probably because the module is not named /v2 and thus the special handling of go v2 releases kicks in. It's an open issue upstream and won't be fixed before v3 (if ever). I also can't patch it because it fails during download stage...
Release Notes URL added.
Ah that sucks. I feel with you; finance/ticker suffers from the same problem.
There is hope. Just today they released 3.0.0-beta1 and the module name is correctly set to /v3 there. Possibly 2.9.1 is the last 2.x release.
Sounds great! Build fails on arm64 FreeBSD 13.2 with a plist error: ====> Running Q/A tests (stage-qa) ====> Checking for pkg-plist issues (check-plist) ===> Parsing plist ===> Checking for items in STAGEDIR missing from pkg-plist Error: Orphaned: @dir /var/db/%%PROMTAIL_USER%% ===> Checking for items in pkg-plist which are not in STAGEDIR ===> Error: Plist issues found. *** Error code 1 Stop. make: stopped in /usr/ports/sysutils/loki Please check. If you're okay with that, I can just add @dir %%PROMTAIL_DATADIR%% to pkg-plist and a corresponding SUB_LIST entry to fix that.
Oh, yes... I guess I missed that when adjusting the promtail patch to 2.9.1 Makefile. Please go ahead :-). Thanks
That's why I do additional testing :-) Will commit with this change, also adjusting ownership to the promtail user.
Thanks
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=b16c0ca7d04e67ba0dd9e2ff7a5cde372a79171b commit b16c0ca7d04e67ba0dd9e2ff7a5cde372a79171b Author: Eren Türkay <turkay.eren@gmail.com> AuthorDate: 2023-10-06 09:46:13 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-10-19 07:07:26 +0000 sysutils/loki: add promtail rc.d script Promtail is a log reader and it can be run as a service to gather the logs to be sent to remote loki server. For nodes that need to send logs only, promtail service and configuration file is needed PR: 274194, 274473 Signed-off-by: Christopher Beppler <freebsd@funzi.org> Approved by: Chirstopher Beppler <freebsd@funzi.org> (maintainer) UIDs | 2 +- sysutils/loki/Makefile | 13 +++- .../files/patch-promtail-local-config.yaml (new) | 11 ++++ sysutils/loki/files/promtail.in (new) | 70 ++++++++++++++++++++++ sysutils/loki/pkg-plist | 4 ++ 5 files changed, 96 insertions(+), 4 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=ccbf8b7a166ff7f08a7f531779fe72439ee67e25 commit ccbf8b7a166ff7f08a7f531779fe72439ee67e25 Author: Christopher Beppler <freebsd@funzi.org> AuthorDate: 2023-10-14 23:55:31 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-10-19 07:07:26 +0000 sysutils/loki: Update to 2.9.1 Changelog: https://github.com/grafana/loki/releases/tag/v2.9.1 PR: 274473 sysutils/loki/Makefile | 229 ++++++++++++++-------------- sysutils/loki/distinfo | 396 ++++++++++++++++++++++++++----------------------- 2 files changed, 324 insertions(+), 301 deletions(-)
Thank you for your contribution.