Created attachment 212164 [details] Updates grok_exporter to 1.0.0.RC3, and sets @sample on its config file.
Build info is available at https://gitlab.com/swills/freebsd-ports/pipelines/123689449
Er um, you may want to hold off merging this. It builds ok, but crashes frequently due to some upstream bug. I'll update the port after I fix the bug.
Sounds great, thanks.
Comment on attachment 212164 [details] Updates grok_exporter to 1.0.0.RC3, and sets @sample on its config file. ^Triage: Obsolete patch so it doesn't accidentally get committed
Created attachment 216154 [details] Update grok_exporter to 1.0.0.RC3 and fix other issues This patch fixes the crashes from the previous version. Go 1.14 introduces asynchronous preemption, which interrupts running goroutines by sending a SIGURG signal. Some syscalls, like kevent(2), will return EINTR when that happens. grok_exporter was treating EINTR like an error, even though no error code was set. The result was an eventual nil dereference. This patch fixes the bug by restarting kevent on EINTR. https://github.com/fstab/grok_exporter/pull/103 Also, the new patch fixes the RC script to relinquish the terminal when daemonizing.
Created attachment 217139 [details] Update grok_exporter to 1.0.0.RC4 and fix other issues Update net-mgmt/grok_exporter to 1.0.0.RC4, set @sample on its config file, and detach from the terminal when daemonizing. Note that the fix for the crash with go 1.14 has been included by upstream in RC4.
A commit references this bug: Author: asomers Date: Sat Sep 19 18:56:52 UTC 2020 New revision: 549050 URL: https://svnweb.freebsd.org/changeset/ports/549050 Log: net-mgmt/grok_exporter: Update to 1.0.0.RC4 Update net-mgmt/grok_exporter to 1.0.0.RC4, set @sample on its config file, and detach from the terminal when daemonizing. PR: 244613 Event: September 2020 Bugathon Approved by: dbaio (ports) Approved by: Gasol Wu <gasol.wu@gmail.com> (maintainer, earlier version) Sponsored by: Axcient Changes: head/net-mgmt/grok_exporter/Makefile head/net-mgmt/grok_exporter/distinfo head/net-mgmt/grok_exporter/files/config.yml.in head/net-mgmt/grok_exporter/files/grok_exporter.in head/net-mgmt/grok_exporter/pkg-plist