From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 06 08:07:48 2020 Received: (at submit) by debbugs.gnu.org; 6 Sep 2020 12:07:48 +0000 Received: from localhost ([127.0.0.1]:44930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEtSW-0001Sb-Bs for submit@debbugs.gnu.org; Sun, 06 Sep 2020 08:07:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:43862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEtSU-0001SS-IT for submit@debbugs.gnu.org; Sun, 06 Sep 2020 08:07:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEtSU-0003NE-EU for guix-patches@gnu.org; Sun, 06 Sep 2020 08:07:46 -0400 Received: from mira.cbaines.net ([212.71.252.8]:48590) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEtSS-0003Cr-Rs for guix-patches@gnu.org; Sun, 06 Sep 2020 08:07:46 -0400 Received: from localhost (unknown [46.237.162.226]) by mira.cbaines.net (Postfix) with ESMTPSA id 395A016F0F for ; Sun, 6 Sep 2020 13:07:44 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id b5358c7c for ; Sun, 6 Sep 2020 12:07:44 +0000 (UTC) From: Christopher Baines To: guix-patches@gnu.org Subject: [PATCH] gnu: Add guile-prometheus. Date: Sun, 6 Sep 2020 13:07:44 +0100 Message-Id: <20200906120744.20651-1-mail@cbaines.net> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/06 08:07:33 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/guile-xyz.scm (guile-prometheus): New variable. --- gnu/packages/guile-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index fa6855f43d..532a8008e5 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -853,6 +853,36 @@ Vicare Scheme and IronScheme. Right now it contains: @end itemize\n") (license license:bsd-3))) +(define-public guile-prometheus + (let ((commit "cbc6e1b03512443a03d66414c426adb8470b5f2b") + (revision "0")) + (package + (name "guile-prometheus") + (version (string-append "0-" revision "." (string-take commit 7))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.cbaines.net/git/guile/prometheus") + (commit commit))) + (sha256 + (base32 + "1k1qg4ia87w2ipnf8cpikdc67lxi5bmahkhgk2x0i9ibdyvqb7np")) + (file-name (string-append name "-" version "-checkout")))) + (build-system gnu-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("autoconf" ,autoconf) + ("automake" ,automake))) + (inputs + `(("guile" ,guile-3.0))) + (home-page "https://git.cbaines.net/guile/prometheus") + (synopsis "Prometheus client library for Guile") + (description + "This Guile library provides instrumentation code intended to be used +with the Prometheus time series service. Counter, gauge and histogram metric +types are supported.") + (license license:gpl3+)))) + (define-public guile2.2-pfds (package (inherit guile-pfds) -- 2.28.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 06 09:28:23 2020 Received: (at 43239) by debbugs.gnu.org; 6 Sep 2020 13:28:23 +0000 Received: from localhost ([127.0.0.1]:45046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEuiV-0003OL-40 for submit@debbugs.gnu.org; Sun, 06 Sep 2020 09:28:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEuiT-0003O9-Dg for 43239@debbugs.gnu.org; Sun, 06 Sep 2020 09:28:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50068) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEuiO-000358-0r; Sun, 06 Sep 2020 09:28:16 -0400 Received: from [2a01:e0a:19b:d9a0:9d9d:97cc:d92a:8ac0] (port=41314 helo=cervin) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kEuiN-0001YY-0V; Sun, 06 Sep 2020 09:28:15 -0400 From: Mathieu Othacehe To: Christopher Baines Subject: Re: [bug#43239] [PATCH] gnu: Add guile-prometheus. References: <20200906120744.20651-1-mail@cbaines.net> Date: Sun, 06 Sep 2020 15:28:13 +0200 In-Reply-To: <20200906120744.20651-1-mail@cbaines.net> (Christopher Baines's message of "Sun, 6 Sep 2020 13:07:44 +0100") Message-ID: <874kobxceq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43239 Cc: 43239@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello Christopher, > + (name "guile-prometheus") > + (version (string-append "0-" revision "." (string-take commit 7))) I think that the usual pattern is something like: --8<---------------cut here---------------start------------->8--- (version (git-version "0.0.1" revision commit)) --8<---------------cut here---------------end--------------->8--- > + (inputs > + `(("guile" ,guile-3.0))) > + (home-page "https://git.cbaines.net/guile/prometheus") The linter reports that this URL is not reachable. > + (synopsis "Prometheus client library for Guile") > + (description > + "This Guile library provides instrumentation code intended to be used > +with the Prometheus time series service. Counter, gauge and histogram metric > +types are supported.") > + (license license:gpl3+)))) Otherwise, looks fine! Turns out I'm currently working on adding some metrics to Cuirass[1]. With commit 154232b, we should be able to add the two metrics proposed in the bug report. The next step is to actually compute, save and display those metrics. I'm just discovering this prometheus but may it could be a good candidate? Do you happen to have a server running prometheus? Thanks, Mathieu [1]: https://issues.guix.gnu.org/32548. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 06 14:25:23 2020 Received: (at 43239-done) by debbugs.gnu.org; 6 Sep 2020 18:25:23 +0000 Received: from localhost ([127.0.0.1]:47137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEzLv-0005AB-BE for submit@debbugs.gnu.org; Sun, 06 Sep 2020 14:25:23 -0400 Received: from mira.cbaines.net ([212.71.252.8]:46922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEzLt-0005A2-PB for 43239-done@debbugs.gnu.org; Sun, 06 Sep 2020 14:25:22 -0400 Received: from localhost (unknown [46.237.162.226]) by mira.cbaines.net (Postfix) with ESMTPSA id 3BBBD27BBE7; Sun, 6 Sep 2020 19:25:20 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id a69648c9; Sun, 6 Sep 2020 18:25:17 +0000 (UTC) References: <20200906120744.20651-1-mail@cbaines.net> <874kobxceq.fsf@gnu.org> User-agent: mu4e 1.4.13; emacs 26.3 From: Christopher Baines To: Mathieu Othacehe Subject: Re: [bug#43239] [PATCH] gnu: Add guile-prometheus. In-reply-to: <874kobxceq.fsf@gnu.org> Date: Sun, 06 Sep 2020 19:25:15 +0100 Message-ID: <874koan4ok.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43239-done Cc: 43239-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Mathieu Othacehe writes: > Hello Christopher, > >> + (name "guile-prometheus") >> + (version (string-append "0-" revision "." (string-take commit 7))) > > I think that the usual pattern is something like: > > --8<---------------cut here---------------start------------->8--- > (version (git-version "0.0.1" revision commit)) > --8<---------------cut here---------------end--------------->8--- Ah, yeah, I copied from a package definition not using that. >> + (inputs >> + `(("guile" ,guile-3.0))) >> + (home-page "https://git.cbaines.net/guile/prometheus") > > The linter reports that this URL is not reachable. I think it's actually the source URL (with the /git bit in it ) that it complains about: gnu/packages/guile-xyz.scm:862:12: guile-prometheus@0-0.cbc6e1b: URI https://git.cbaines.net/git/guile/prometheus not reachable: 404 ("Not Found") While the home page URL definitely works, that URL does 404, however it seems to work just fine for cloning the repository, so I'm not quite sure what if anything to do with this lint warning. >> + (synopsis "Prometheus client library for Guile") >> + (description >> + "This Guile library provides instrumentation code intended to be used >> +with the Prometheus time series service. Counter, gauge and histogram metric >> +types are supported.") >> + (license license:gpl3+)))) > > Otherwise, looks fine! Turns out I'm currently working on adding some > metrics to Cuirass[1]. With commit 154232b, we should be able to add the > two metrics proposed in the bug report. The next step is to actually > compute, save and display those metrics. > > I'm just discovering this prometheus but may it could be a good > candidate? Do you happen to have a server running prometheus? I've with the version change, I've gone ahead and pushed. Thanks for taking a look! As for Cuirass metrics, that sounds exciting. I do happen to have a Prometheus instance [1] which I've been using to monitor machines and the Guix Build Coordinator that I run for the guix.cbaines.net build farm. 1: http://mago.cbaines.net:9090/ While Prometheus can generate graphs, I've been using Grafana [2] to build dashboards to visualise the Prometheus data. 2: http://mago.cbaines.net:3000/ This [4] is the dashboard I have for the guix.cbaines.net stuff, which pulls together data from the node exporter service on the various machines as well as the Guix Build Coordinator coordinator service itself [5]. 4: http://mago.cbaines.net:3000/d/gMq2pj3Wk/guix-cbaines-net 5: https://coordinator.guix.cbaines.net/metrics Today, I've just started getting the Guix Data Service to export some metrics [6] as I want to try and understand how the size of different tables and indexes in the database change over time. There's a Grafana dashboard for that too [7]. 6: https://data.guix-patches.cbaines.net/metrics 7: http://mago.cbaines.net:3000/d/w7YijfvGz/guix-data-service Additionally, I'm also running Alertmanager [8] which can send out emails, for example when a machine is low on disk space. 8: http://mago.cbaines.net:9093/ Anyway, if you decide to have Cuirass export metrics in the Prometheus style, just let me know and I can get the Prometheus instance I'm running to scrape them. I can also give you access to Grafana so you can create dashboards. Thanks again, Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl9VKYtfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XdK/w/8Dv9rPnHBbf1EmbRtLE9tH3TG57PW5uRLjEhUcqkNyWf+MRUFPwyMaG7w /nOLsQ05J7diaywvkZlbZ4jTZ9qB1B2hGfrhOAgEMzKawMz1TmiyTLQiWAWzGmPg 02PCBta7/v/8fPfszK4GWdUHwjtzDd7OunCnuK8fEbiTOWgWe2lPpc95dogQcmvr wYAApqibtv7HvlIOGPN7ICQV1NISgbg+OMbsJ/v9fYorGfGnK82q/YbP3Tz8X6OH rtUh+wOkCfby2Uxe6ExX2ST6gnrZ8AAvN4VvDIn3SW8w75StICqraYHsE36ooQN0 kwSKcnLTHFgIM+MxeUxyoED97ZsP/q5Ycw7un8b3qw9ajVp6J3OvX295RixMEvC/ gQsaSdGFR5osHdpOQ+GNwNqr3y11a84HkTofHK0afybqpWZYSl6udxbSEnj31AUU TDNwAJFBZKcTn3U10kb+nQmyZjftMUW468kIrv8uaQ1YvcuaVLNkP2xJYlOurFT/ t6K3a+BdS8b+gcNsJKR//RaK42b0hnDMg54o0GOmYv6kHpAA0AUaKWke9LWmP4sV Haoy8tPsR7YlHrJG2vpcMOPATFAQJmUJWQLtUV4JLZ7WnSZ/WlHDYLsaqj6zjkQf cCP5lKiKTQD0LaBdW7k92uTqbaKEhxbhDPY2Bi4KGr3Fs3CQgCQ= =Y1GR -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 10 09:23:51 2020 Received: (at 43239-done) by debbugs.gnu.org; 10 Sep 2020 13:23:51 +0000 Received: from localhost ([127.0.0.1]:37692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGMYJ-0006pu-Jq for submit@debbugs.gnu.org; Thu, 10 Sep 2020 09:23:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGMYG-0006pg-7C for 43239-done@debbugs.gnu.org; Thu, 10 Sep 2020 09:23:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58432) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGMYA-0007Zm-Jm; Thu, 10 Sep 2020 09:23:42 -0400 Received: from [2a01:e0a:19b:d9a0:9d9d:97cc:d92a:8ac0] (port=56584 helo=cervin) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kGMYA-0006Iv-0l; Thu, 10 Sep 2020 09:23:42 -0400 From: Mathieu Othacehe To: Christopher Baines Subject: Re: [bug#43239] [PATCH] gnu: Add guile-prometheus. References: <20200906120744.20651-1-mail@cbaines.net> <874kobxceq.fsf@gnu.org> <874koan4ok.fsf@cbaines.net> Date: Thu, 10 Sep 2020 15:23:40 +0200 In-Reply-To: <874koan4ok.fsf@cbaines.net> (Christopher Baines's message of "Sun, 06 Sep 2020 19:25:15 +0100") Message-ID: <87r1r94vfn.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43239-done Cc: 43239-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello Chris, > Anyway, if you decide to have Cuirass export metrics in the Prometheus > style, just let me know and I can get the Prometheus instance I'm > running to scrape them. I can also give you access to Grafana so you can > create dashboards. Thanks a lot for all the inputs. For now I've decided to store metrics in a dedicated Cuirass table. Then, I'll display some of them directly in the web UI while making other available through the JSON API. I'll see in a second time if I can also export those metrics to your Prometheus servers. Mathieu From unknown Mon Aug 18 14:24:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 09 Oct 2020 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator