From patchwork Sat Jul 24 18:56:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Holger Sunke X-Patchwork-Id: 5 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4GXFmb48lPz3xGp for ; Sat, 24 Jul 2021 18:57:19 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4GXFmZ359Kzm3; Sat, 24 Jul 2021 18:57:18 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4GXFmZ250Tz2xhH; Sat, 24 Jul 2021 18:57:18 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4GXFmX5Scyz2xSc for ; Sat, 24 Jul 2021 18:57:16 +0000 (UTC) Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPS id 4GXFmW6g18zm3 for ; Sat, 24 Jul 2021 18:57:15 +0000 (UTC) Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 33D36240028 for ; Sat, 24 Jul 2021 20:57:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1627153034; bh=46t1dC1d4Y19ZticCADB39eSJpk93rLEwlhktWXNfKM=; h=From:To:Cc:Subject:Date:From; b=YBL+4SEaeYzMVjncIYf7Bjj/UWNrEGIPaHPv6oJkRdscuSX2U3AT8kQma9mADGJGx WElRZdv1TzOEuLO3q0wos1CZy541f5MRq8B+yToz1Ft6rAbBMIVs0T9rU96laczo6E 92KoebFqKQiQSe0ffxNkz9MaNHNFw44AfPAS77mGaAINWFCVetf4pVtI8xvJx+qVkB /RUJR9bVCeU2tc+G0fOBKRoLMI4/Ib/70+zA2vQ3DVV4Nxp/sfdAaDYkq1QUGyEKGi rd0/psCpD8/hpGv+o+McKKbjK0CpOs82C9b+GY13+a4KqmE9JRnfp/7QqBi0a5RnF3 Cysx0Cb/tjueg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GXFmT3G0gz6tmG; Sat, 24 Jul 2021 20:57:13 +0200 (CEST) From: Holger Sunke To: development@lists.ipfire.org Subject: [PATCH 0/3] Reworked patches introducing node_exporter on master Date: Sat, 24 Jul 2021 18:56:36 +0000 Message-Id: <20210724185639.3469623-1-holger.sunke@posteo.de> MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1627153036; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=IXuhzINTViTWz56Zfy+KHZ1W8qiqIm6ov0INPJJ5Tqo=; b=j3sh6XFG79Su5WWRFo9b/rMtFi/HQdJDNHlmkcBi14f1o8bbouB2jVhZ3sTnDQl2uv+65N 0FrOxhj2fAmBgBwiA8iXI1SZZuTao8fK3chlugjbDCs6PD5gfhC0nJ6XxT2xiz6nbxVklk MaMfLzEW7sXAQlGZW+N0zLFJOtZrsVGEv6qGa6g/YI5NoY9COjb3l4TwIhTmnJjCNLFjey Cm4lR4hoEn9m4OwlNDFubI4vZtsiYEnppa6/OJqH2OIj8r5xiZLNMeN1qspkJqzqZySZsI qUMrnwIYCwOomdsH/0iIioQ6vDgX5LaG31p0Tl863YxiBVCXzjamn3VKTGsrGA== ARC-Seal: i=1; s=202003rsa; d=lists.ipfire.org; t=1627153036; a=rsa-sha256; cv=none; b=qfB84+hrOwLQ+oAMchL32S1ilIR+vyZRLUXwGwRPzT2i08G/29phpxZ+KJISNSiBcHOFnX SPOygkx7zLMc115kUGiFNk2W/ZpIxO6W8EqLb7UbhHYqyVrQU2rfbOmRWh0QRlRuGtPIRy gvEbffuWyJGd9127jVQo1s9j8DKy5tGdZXsPyCn+vJ0/StOPNPVHj/l3FEqULHGiX0D9sq 9TdfdAg+Qq2DrDpl7uMh7VVhMhPjo5HqMXssdPuuqFn67lxdD/EeP0gHm2eXANmo9be5to VaDvAeHs6ZIyez2cyuRbFbg+SMuNMoKoGWAMAfFhdxJ8FWNCyWByN+d7aMov0Q== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=posteo.de header.s=2017 header.b=YBL+4SEa; spf=pass (mail01.ipfire.org: domain of holger.sunke@posteo.de designates 185.67.36.65 as permitted sender) smtp.mailfrom=holger.sunke@posteo.de X-Rspamd-Queue-Id: 4GXFmW6g18zm3 Authentication-Results: mail01.ipfire.org; dkim=pass header.d=posteo.de header.s=2017 header.b=YBL+4SEa; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (mail01.ipfire.org: domain of holger.sunke@posteo.de designates 185.67.36.65 as permitted sender) smtp.mailfrom=holger.sunke@posteo.de X-Rspamd-Server: mail01.haj.ipfire.org X-Spamd-Result: default: False [-0.12 / 11.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; IP_REPUTATION_HAM(-0.01)[asn: 8495(0.00), country: DE(-0.01), ip: 185.67.36.65(0.00)]; RWL_MAILSPIKE_GOOD(0.00)[185.67.36.65:from]; R_SPF_ALLOW(-0.20)[+ip4:185.67.36.0/23]; BROKEN_CONTENT_TYPE(1.50)[]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[posteo.de:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[posteo.de,none]; MX_GOOD(-0.01)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8495, ipnet:185.67.36.0/23, country:DE]; BAYES_HAM(-3.00)[99.99%]; RCVD_IN_DNSWL_LOW(-0.10)[185.67.36.65:from]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[posteo.de:s=2017]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[development@lists.ipfire.org]; DWL_DNSWL_LOW(-1.00)[posteo.de:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_CONTAINS_FROM(1.00)[]; RCVD_TLS_ALL(0.00)[] X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" These are reworked patches on top of [master] that modify the [go] package to be downloaded for all supported architectures and introduce the new package [node_exporter], which requires [go] during compilation. I also added a node_exporter_starter.sh which redirects output into a log file and does not suppress 'loadproc' status output. These patches replace my previous patches on node_exporter and go. --- node_exporter generally provides a number of runtime related metrics through a lightweight HTTP plain text interface that can be scraped by time series databases in regular interval. These metrics can then be used in grapical UIs for monitoring, analyzation and alerting. It is of use for users already monitoring their machines this way and just are about to add their ipfire nodes into the monitoring stack. Holger Sunke (3): Added x86_64 i586 aarch64 armv5tel support for GO language required for node_exporter compilation. Added root files aarch64, armv5tel and i586 for 'go' Added new node_exporter 1.2.0 package. config/node_exporter/node_exporter_options | 203 + config/rootfiles/common/aarch64/go | 10291 +++++++++++++++++++ config/rootfiles/common/armv5tel/go | 10290 ++++++++++++++++++ config/rootfiles/common/i586/go | 10290 ++++++++++++++++++ config/rootfiles/packages/node_exporter | 4 + lfs/Config | 8 + lfs/go | 9 +- lfs/node_exporter | 98 + make.sh | 1 + src/initscripts/packages/node_exporter | 39 + src/paks/node_exporter/install.sh | 31 + src/paks/node_exporter/uninstall.sh | 30 + src/paks/node_exporter/update.sh | 27 + src/scripts/node_exporter_starter.sh | 7 + 14 files changed, 31325 insertions(+), 3 deletions(-) create mode 100644 config/node_exporter/node_exporter_options create mode 100644 config/rootfiles/common/aarch64/go create mode 100644 config/rootfiles/common/armv5tel/go create mode 100644 config/rootfiles/common/i586/go create mode 100644 config/rootfiles/packages/node_exporter create mode 100644 lfs/node_exporter create mode 100644 src/initscripts/packages/node_exporter create mode 100644 src/paks/node_exporter/install.sh create mode 100644 src/paks/node_exporter/uninstall.sh create mode 100644 src/paks/node_exporter/update.sh create mode 100644 src/scripts/node_exporter_starter.sh