[Bug 270062] [PATCH] sysutils/node_exporter: fix "cannot allocate memory"

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 09 Mar 2023 10:11:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270062

            Bug ID: 270062
           Summary: [PATCH] sysutils/node_exporter: fix "cannot allocate
                    memory"
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: lapo@lapo.it
                CC: dor.bsd@xm0.uk
                CC: dor.bsd@xm0.uk
             Flags: maintainer-feedback?(dor.bsd@xm0.uk)

node_exporter-1.5.0 has a bug that spams the logs a lot with these messages
(every few seconds):

    node_exporter 1937 - - ts=2023-03-09T10:07:56.105Z caller=collector.go:169
level=error msg="collector failed" name=meminfo duration_seconds=2.3866e-05
err="couldn't get memory: cannot allocate memory"

There is an existing fix in a PR on GitHub, it has already been included
upstream, but no release has been done yet, it would probably be nice to have
the fix in the FreeBSD Port by locally applying the patch (it is a one-liner
patch):

https://github.com/prometheus/node_exporter/pull/2584/files

-- 
You are receiving this mail because:
You are the assignee for the bug.