Bug 265231

Summary: sysutils/loki: add promtail and logcli as well
Product: Ports & Packages Reporter: Dave Cottlehuber <dch>
Component: Individual Port(s)Assignee: Dave Cottlehuber <dch>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: dmgk, fernape, freebsd
Priority: --- Flags: bugzilla: maintainer-feedback? (freebsd)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
add promtail & logcli none

Description Dave Cottlehuber freebsd_committer freebsd_triage 2022-07-15 10:31:32 UTC
Created attachment 235268 [details]
add promtail & logcli

l /usr/local/bin/{loki,promtail,logcli}
-r-xr-xr-x  1 root  wheel    45M Jul 14 22:21 /usr/local/bin/logcli
-r-xr-xr-x  1 root  wheel    51M Jul 14 22:21 /usr/local/bin/loki
-r-xr-xr-x  1 root  wheel    74M Jul 14 22:21 /usr/local/bin/promtail

It doesn't seem to make much sense to put all of these in separate packages.

there's also:

- chunks-inspect
- loki-canary
- migrate
- querytee
- (logcli)

and in clients:

- docker-driver
- fluent-bit
- fluent
- logstash
- (promtail)

should we build these too?
Comment 1 Christopher Beppler 2022-07-16 07:38:52 UTC
Thanks. You’re right, individual packages for each of them doesn’t feel right and also increases the maintenance effort.

I‘d like to address this with the version bump to 2.6.0 in the next days.

I wouldn’t build all of them but rather align with what is released on the upstream GitHub releases page, being

- logcli
- loki
- loki-canary
- promtail

Unless there is some demand for the others.
Comment 2 Fernando Apesteguía freebsd_committer freebsd_triage 2022-07-18 06:34:11 UTC
^Triage: reporter is committer, assign accordingly.
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-07-18 12:19:50 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a53efc77beaf0df89f1f9e9d3cfacb862140edeb

commit a53efc77beaf0df89f1f9e9d3cfacb862140edeb
Author:     Christopher Beppler <freebsd@funzi.org>
AuthorDate: 2022-07-18 12:14:07 +0000
Commit:     Dmitri Goutnik <dmgk@FreeBSD.org>
CommitDate: 2022-07-18 12:14:07 +0000

    sysutils/loki: Update to 2.6.0

    - Update to 2.6.0
    - Add logcli, loki-canary and promtail

    Changes:        https://github.com/grafana/loki/releases/tag/v2.6.0

    PR:             265295
    PR:             256031
    PR:             265231

 sysutils/loki/Makefile      | 43 ++++++++++++++-----------
 sysutils/loki/distinfo      | 78 +++++++++++++++++++++++++++------------------
 sysutils/loki/files/loki.in |  3 --
 sysutils/loki/pkg-plist     |  3 ++
 4 files changed, 74 insertions(+), 53 deletions(-)