Hello, Here's an update for loki up to the latest version. I no longer run the server component on OpenBSD so if someone does, I'd appreciate a test. The promtail log forwarder works fine.
The previous patches have made it into the upstream projects so they can be removed. The new patch I added has an open PR: https://github.com/fsouza/fake-gcs-server/pull/1858 Other tests? Thanks, Lucas
diff refs/heads/master refs/heads/loki commit - 369932a946e889887c560672722283a94ca29e21 commit + 65b583aaaa939c0b2b00cb548ffe14191bcee1d4 blob - 195d079f7966d95d1e2fb0decfd513143468c249 blob + 640b80c8182f722d0c5f0211ddc059027eac4cae --- sysutils/loki/Makefile +++ sysutils/loki/Makefile @@ -3,8 +3,7 @@ COMMENT-promtail = tails log files and pushes them to GH_ACCOUNT = grafana GH_PROJECT = loki -GH_TAGNAME = v3.1.0 -REVISION = 0 +GH_TAGNAME = v3.3.2 CATEGORIES = sysutils blob - c64bb593ad80ea0799b49695d7e625009d5f3779 blob + f86bf50177f28d00a4bce651d3f953c3e19653cc --- sysutils/loki/distinfo +++ sysutils/loki/distinfo @@ -1,2 +1,2 @@ -SHA256 (loki-3.1.0.tar.gz) = 5afHU6thSISVp2XvzNwPTc3dhjn184dC3yfj9Dqql7Y= -SIZE (loki-3.1.0.tar.gz) = 51764140 +SHA256 (loki-3.3.2.tar.gz) = 3S6A7kC5gaqkFPUop2qyGJMeWlPVBUDo+5ZZ+eJEb0M= +SIZE (loki-3.3.2.tar.gz) = 58162322 blob - 43bd01d0e7b06d1436b03c861d16ef2557800956 blob + ef14ca1641acfa0080381cc7dd936885ca22f774 --- sysutils/loki/patches/patch-cmd_loki_loki-local-config_yaml +++ sysutils/loki/patches/patch-cmd_loki_loki-local-config_yaml @@ -1,7 +1,7 @@ Index: cmd/loki/loki-local-config.yaml --- cmd/loki/loki-local-config.yaml.orig +++ cmd/loki/loki-local-config.yaml -@@ -6,11 +6,11 @@ server: +@@ -8,11 +8,11 @@ server: common: instance_addr: 127.0.0.1 blob - 56e2942e53557e9d29b665d0f1b17b279d08bdbd (mode 644) blob + /dev/null --- sysutils/loki/patches/patch-vendor_github_com_grafana_pyroscope-go_godeltaprof_internal_pprof_stub_go +++ /dev/null @@ -1,19 +0,0 @@ -Index: vendor/github.com/grafana/pyroscope-go/godeltaprof/internal/pprof/stub.go ---- vendor/github.com/grafana/pyroscope-go/godeltaprof/internal/pprof/stub.go.orig -+++ vendor/github.com/grafana/pyroscope-go/godeltaprof/internal/pprof/stub.go -@@ -3,15 +3,6 @@ - - package pprof - --// unsafe is required for go:linkname --import _ "unsafe" -- --//go:linkname runtime_expandFinalInlineFrame runtime/pprof.runtime_expandFinalInlineFrame --func runtime_expandFinalInlineFrame(stk []uintptr) []uintptr -- --//go:linkname runtime_cyclesPerSecond runtime/pprof.runtime_cyclesPerSecond --func runtime_cyclesPerSecond() int64 -- - func Runtime_cyclesPerSecond() int64 { - return runtime_cyclesPerSecond() - } blob - /dev/null blob + 00baae3e75b489b67be0c4e5c69defe0717af581 (mode 644) --- /dev/null +++ sysutils/loki/patches/patch-vendor_github_com_fsouza_fake-gcs-server_internal_backend_time_openbsd_go @@ -0,0 +1,19 @@ +Index: vendor/github.com/fsouza/fake-gcs-server/internal/backend/time_openbsd.go +--- vendor/github.com/fsouza/fake-gcs-server/internal/backend/time_openbsd.go.orig ++++ vendor/github.com/fsouza/fake-gcs-server/internal/backend/time_openbsd.go +@@ -0,0 +1,15 @@ ++//go:build openbsd ++ ++package backend ++ ++import ( ++ "os" ++ "syscall" ++) ++ ++func createTimeFromFileInfo(input os.FileInfo) syscall.Timespec { ++ if statT, ok := input.Sys().(*syscall.Stat_t); ok { ++ return statT.Ctim ++ } ++ return syscall.Timespec{} ++} blob - 38eb4e146d537496a9815dc3a75925c47d366344 (mode 644) blob + /dev/null --- sysutils/loki/patches/patch-vendor_github_com_grafana_pyroscope-go_godeltaprof_internal_pprof_stub_go20_go +++ /dev/null @@ -1,25 +0,0 @@ -Index: vendor/github.com/grafana/pyroscope-go/godeltaprof/internal/pprof/stub_go20.go ---- vendor/github.com/grafana/pyroscope-go/godeltaprof/internal/pprof/stub_go20.go.orig -+++ vendor/github.com/grafana/pyroscope-go/godeltaprof/internal/pprof/stub_go20.go -@@ -3,7 +3,10 @@ - - package pprof - --import "runtime" -+import ( -+ "runtime" -+ _ "unsafe" -+) - - // runtime_FrameStartLine is defined in runtime/symtab.go. - func runtime_FrameStartLine(f *runtime.Frame) int { -@@ -14,3 +17,9 @@ func runtime_FrameStartLine(f *runtime.Frame) int { - func runtime_FrameSymbolName(f *runtime.Frame) string { - return f.Function - } -+ -+//go:linkname runtime_expandFinalInlineFrame runtime/pprof.runtime_expandFinalInlineFrame -+func runtime_expandFinalInlineFrame(stk []uintptr) []uintptr -+ -+//go:linkname runtime_cyclesPerSecond runtime/pprof.runtime_cyclesPerSecond -+func runtime_cyclesPerSecond() int64 blob - ab8381917469d45feefa863ebddb83d8cc30b839 (mode 644) blob + /dev/null --- sysutils/loki/patches/patch-vendor_github_com_grafana_pyroscope-go_godeltaprof_internal_pprof_stub_go21_go +++ /dev/null @@ -1,25 +0,0 @@ -Index: vendor/github.com/grafana/pyroscope-go/godeltaprof/internal/pprof/stub_go21.go ---- vendor/github.com/grafana/pyroscope-go/godeltaprof/internal/pprof/stub_go21.go.orig -+++ vendor/github.com/grafana/pyroscope-go/godeltaprof/internal/pprof/stub_go21.go -@@ -1,21 +0,0 @@ --//go:build go1.21 --// +build go1.21 -- --package pprof -- --import ( -- "runtime" -- _ "unsafe" --) -- --// runtime_FrameStartLine is defined in runtime/symtab.go. --// --//go:noescape --//go:linkname runtime_FrameStartLine runtime/pprof.runtime_FrameStartLine --func runtime_FrameStartLine(f *runtime.Frame) int -- --// runtime_FrameSymbolName is defined in runtime/symtab.go. --// --//go:noescape --//go:linkname runtime_FrameSymbolName runtime/pprof.runtime_FrameSymbolName --func runtime_FrameSymbolName(f *runtime.Frame) string blob - dc32eb9c2651543fcd78b35bad53f6abb9ba7725 (mode 644) blob + /dev/null --- sysutils/loki/patches/patch-vendor_github_com_grafana_pyroscope-go_godeltaprof_internal_pprof_stub_go22_go +++ /dev/null @@ -1,31 +0,0 @@ -Index: vendor/github.com/grafana/pyroscope-go/godeltaprof/internal/pprof/stub_go22.go ---- vendor/github.com/grafana/pyroscope-go/godeltaprof/internal/pprof/stub_go22.go.orig -+++ vendor/github.com/grafana/pyroscope-go/godeltaprof/internal/pprof/stub_go22.go -@@ -0,0 +1,27 @@ -+//go:build go1.21 && !go1.23 -+// +build go1.21,!go1.23 -+ -+package pprof -+ -+import ( -+ "runtime" -+ _ "unsafe" -+) -+ -+// runtime_FrameStartLine is defined in runtime/symtab.go. -+// -+//go:noescape -+//go:linkname runtime_FrameStartLine runtime/pprof.runtime_FrameStartLine -+func runtime_FrameStartLine(f *runtime.Frame) int -+ -+// runtime_FrameSymbolName is defined in runtime/symtab.go. -+// -+//go:noescape -+//go:linkname runtime_FrameSymbolName runtime/pprof.runtime_FrameSymbolName -+func runtime_FrameSymbolName(f *runtime.Frame) string -+ -+//go:linkname runtime_expandFinalInlineFrame runtime/pprof.runtime_expandFinalInlineFrame -+func runtime_expandFinalInlineFrame(stk []uintptr) []uintptr -+ -+//go:linkname runtime_cyclesPerSecond runtime/pprof.runtime_cyclesPerSecond -+func runtime_cyclesPerSecond() int64 blob - c96976173e0aed5cd4e5eda2a31d1d0a670bf01b (mode 644) blob + /dev/null --- sysutils/loki/patches/patch-vendor_github_com_grafana_pyroscope-go_godeltaprof_internal_pprof_stub_go23_go +++ /dev/null @@ -1,31 +0,0 @@ -Index: vendor/github.com/grafana/pyroscope-go/godeltaprof/internal/pprof/stub_go23.go ---- vendor/github.com/grafana/pyroscope-go/godeltaprof/internal/pprof/stub_go23.go.orig -+++ vendor/github.com/grafana/pyroscope-go/godeltaprof/internal/pprof/stub_go23.go -@@ -0,0 +1,27 @@ -+//go:build go1.23 -+// +build go1.23 -+ -+package pprof -+ -+import ( -+ "runtime" -+ _ "unsafe" -+) -+ -+// runtime_FrameStartLine is defined in runtime/symtab.go. -+// -+//go:noescape -+//go:linkname runtime_FrameStartLine runtime/pprof.runtime_FrameStartLine -+func runtime_FrameStartLine(f *runtime.Frame) int -+ -+// runtime_FrameSymbolName is defined in runtime/symtab.go. -+// -+//go:noescape -+//go:linkname runtime_FrameSymbolName runtime/pprof.runtime_FrameSymbolName -+func runtime_FrameSymbolName(f *runtime.Frame) string -+ -+//go:linkname runtime_expandFinalInlineFrame runtime/pprof.runtime_expandFinalInlineFrame -+func runtime_expandFinalInlineFrame(stk []uintptr) []uintptr -+ -+//go:linkname runtime_cyclesPerSecond runtime/pprof.runtime_cyclesPerSecond -+func runtime_cyclesPerSecond() int64 blob - 93484df1dfbcf6d942e75404c584bc53392191a0 (mode 644) blob + /dev/null --- sysutils/loki/patches/patch-vendor_github_com_prometheus_prometheus_storage_remote_otlptranslator_prometheus_normalize_label_go +++ /dev/null @@ -1,14 +0,0 @@ -Backport: https://github.com/prometheus/prometheus/pull/13759 - -Index: vendor/github.com/prometheus/prometheus/storage/remote/otlptranslator/prometheus/normalize_label.go ---- vendor/github.com/prometheus/prometheus/storage/remote/otlptranslator/prometheus/normalize_label.go.orig -+++ vendor/github.com/prometheus/prometheus/storage/remote/otlptranslator/prometheus/normalize_label.go -@@ -3,7 +3,7 @@ - // Copyright The OpenTelemetry Authors - // SPDX-License-Identifier: Apache-2.0 - --package prometheus // import "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/prometheus" -+package prometheus // import "github.com/prometheus/prometheus/storage/remote/otlptranslator/prometheus" - - import ( - "strings" blob - ba99fd60e8b6ce4caddf5a98a1754109f4e7c056 (mode 644) blob + /dev/null --- sysutils/loki/patches/patch-vendor_github_com_prometheus_prometheus_storage_remote_otlptranslator_prometheus_normalize_name_go +++ /dev/null @@ -1,14 +0,0 @@ -Backport: https://github.com/prometheus/prometheus/pull/13759 - -Index: vendor/github.com/prometheus/prometheus/storage/remote/otlptranslator/prometheus/normalize_name.go ---- vendor/github.com/prometheus/prometheus/storage/remote/otlptranslator/prometheus/normalize_name.go.orig -+++ vendor/github.com/prometheus/prometheus/storage/remote/otlptranslator/prometheus/normalize_name.go -@@ -3,7 +3,7 @@ - // Copyright The OpenTelemetry Authors - // SPDX-License-Identifier: Apache-2.0 - --package prometheus // import "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/prometheus" -+package prometheus // import "github.com/prometheus/prometheus/storage/remote/otlptranslator/prometheus" - - import ( - "strings" blob - 3646f91b228c86df40e37b8df13a9b94923fa5b1 (mode 644) blob + /dev/null --- sysutils/loki/patches/patch-vendor_github_com_prometheus_prometheus_storage_remote_otlptranslator_prometheus_unit_to_ucum_go +++ /dev/null @@ -1,14 +0,0 @@ -Backport: https://github.com/prometheus/prometheus/pull/13759 - -Index: vendor/github.com/prometheus/prometheus/storage/remote/otlptranslator/prometheus/unit_to_ucum.go ---- vendor/github.com/prometheus/prometheus/storage/remote/otlptranslator/prometheus/unit_to_ucum.go.orig -+++ vendor/github.com/prometheus/prometheus/storage/remote/otlptranslator/prometheus/unit_to_ucum.go -@@ -3,7 +3,7 @@ - // Copyright The OpenTelemetry Authors - // SPDX-License-Identifier: Apache-2.0 - --package prometheus // import "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/prometheus" -+package prometheus // import "github.com/prometheus/prometheus/storage/remote/otlptranslator/prometheus" - - import "strings" -