From owner-freebsd-ports-bugs@freebsd.org Wed Oct 21 18:39:39 2020 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CC60942A1D5 for ; Wed, 21 Oct 2020 18:39:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4CGfRb57N6z4chC for ; Wed, 21 Oct 2020 18:39:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id AE27442A1D4; Wed, 21 Oct 2020 18:39:39 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ACD3642A22C for ; Wed, 21 Oct 2020 18:39:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CGfRb3z0Gz4cBf for ; Wed, 21 Oct 2020 18:39:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 675F2A224 for ; Wed, 21 Oct 2020 18:39:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 09LIddAr042670 for ; Wed, 21 Oct 2020 18:39:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 09LIddZl042669 for ports-bugs@FreeBSD.org; Wed, 21 Oct 2020 18:39:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 250513] net-mgmt/telegraf: uptime is reported as seconds-since-epoch, not seconds-since-boot Date: Wed, 21 Oct 2020 18:39:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: uqs@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: girgen@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Oct 2020 18:39:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250513 Bug ID: 250513 Summary: net-mgmt/telegraf: uptime is reported as seconds-since-epoch, not seconds-since-boot Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: girgen@FreeBSD.org Reporter: uqs@FreeBSD.org Flags: maintainer-feedback?(girgen@FreeBSD.org) Assignee: girgen@FreeBSD.org So there I was installing telegraf, influxdb, grafana and the like and noti= ced my uptime measured in about 1 year (which itself is bogus, but not the problem). The problem is that the gopsutil as used by telegraf has a bug in how it returns uptime on FreeBSD. This is fixed in head, but broken in the 2.19.7 version used by the port. See this: % sudo telegraf -config /usr/local/etc/telegraf.conf -test|grep uptime; date +%s 2020-10-21T18:31:37Z I! Starting Telegraf 1.15.3 > system,host=3Dcoyote.spoerlein.net uptime=3D1603305097i 16033050970000000= 00 > system,host=3Dcoyote.spoerlein.net uptime_format=3D"18556 days, 18:31" 16= 03305097000000000 1603305097 And indeed, checking out 2.19.7 and running a simple print uptime command I get: % go run gopsutil_uptime.go 1603305234 Bisecting shows that v2.20.7 is the first version that fixes it: % go run gopsutil_uptime.go 1152659 Much better. Interestingly, the only commit for that month was a major refactor, that doesn't even state that it fixes this _significant_ problem = on FreeBSD. https://github.com/shirou/gopsutil/commit/28890b0482feb66e057d2e2763d851f02= 0f8dd65 Please approve that I bump the dependency to v2.20.7, thanks. --=20 You are receiving this mail because: You are the assignee for the bug.=