* [bug#30802] [PATCH] gnu: Add python-prometheus-client.
@ 2018-03-13 18:50 Christopher Baines
2018-03-15 21:07 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Christopher Baines @ 2018-03-13 18:50 UTC (permalink / raw)
To: 30802
* gnu/packages/monitoring.scm (python-prometheus-client,
python2-prometheus-client): New variables.
---
gnu/packages/monitoring.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm
index c5a86d02c..a74a72c91 100644
--- a/gnu/packages/monitoring.scm
+++ b/gnu/packages/monitoring.scm
@@ -28,6 +28,7 @@
#:use-module (guix build-system gnu)
#:use-module (gnu packages admin)
#:use-module (gnu packages base)
+ #:use-module (gnu packages check)
#:use-module (gnu packages compression)
#:use-module (gnu packages django)
#:use-module (gnu packages gd)
@@ -262,3 +263,34 @@ and persisting them to disk using the Whisper time-series library.")
two things: store numeric time-series data, and render graphs of this data on
demand.")
(license license:asl2.0)))
+
+(define-public python-prometheus-client
+ (package
+ (name "python-prometheus-client")
+ (version "0.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "prometheus_client" version))
+ (sha256
+ (base32
+ "164qzzg8q8awqk0angcm87p2sjiibaj1wgjz0xk6j0klvqi5q2mz"))))
+ (build-system python-build-system)
+ (arguments
+ '(;; No included tests.
+ #:tests? #f))
+ (home-page
+ "https://github.com/prometheus/client_python")
+ (synopsis
+ "Python client for the Prometheus monitoring system.")
+ (description
+ "The @code{prometheus_client} package supports exposing metrics from
+software written in Python, so that they can be scraped by a Prometheus
+service.
+
+Metrics can be exposed through a standalone web server, or through Twisted,
+WSGI and the node exporter textfile collector.")
+ (license license:asl2.0)))
+
+(define-public python2-prometheus-client
+ (package-with-python2 python-prometheus-client))
--
2.16.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#30802] [PATCH] gnu: Add python-prometheus-client.
2018-03-13 18:50 [bug#30802] [PATCH] gnu: Add python-prometheus-client Christopher Baines
@ 2018-03-15 21:07 ` Ludovic Courtès
2018-03-17 20:46 ` bug#30802: " Christopher Baines
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2018-03-15 21:07 UTC (permalink / raw)
To: Christopher Baines; +Cc: 30802
Hi!
Christopher Baines <mail@cbaines.net> skribis:
> * gnu/packages/monitoring.scm (python-prometheus-client,
> python2-prometheus-client): New variables.
[...]
> + (synopsis
> + "Python client for the Prometheus monitoring system.")
No period please. :-)
Otherwise LGTM, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#30802: [PATCH] gnu: Add python-prometheus-client.
2018-03-15 21:07 ` Ludovic Courtès
@ 2018-03-17 20:46 ` Christopher Baines
0 siblings, 0 replies; 3+ messages in thread
From: Christopher Baines @ 2018-03-17 20:46 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 30802-done
[-- Attachment #1: Type: text/plain, Size: 411 bytes --]
Ludovic Courtès <ludo@gnu.org> writes:
> Hi!
>
> Christopher Baines <mail@cbaines.net> skribis:
>
>> * gnu/packages/monitoring.scm (python-prometheus-client,
>> python2-prometheus-client): New variables.
>
> [...]
>
>> + (synopsis
>> + "Python client for the Prometheus monitoring system.")
>
> No period please. :-)
I've removed the period and pushed, thanks for taking a look :)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-03-17 20:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-13 18:50 [bug#30802] [PATCH] gnu: Add python-prometheus-client Christopher Baines
2018-03-15 21:07 ` Ludovic Courtès
2018-03-17 20:46 ` bug#30802: " Christopher Baines
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).