Subject: [bug#34613] [PATCH] gnu: Add prometheus.

From: zimoun <[email-masked]>
Date: Thu, 07 Apr 2022 14:29:56 +0200

Hi,

What is the status of this old patch#34613:

    <http://issues.guix.gnu.org/issue/34613>

On Fri, 22 Feb 2019 at 12:45, Gábor Boskovits <[email-masked]> wrote:
> * gnu/packages/monitoring.scm
> (go-github-com-prometheus-prometheus-cmd-prometheus): New variable.
> ---
>  gnu/packages/monitoring.scm | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
>
> diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm
> index 4384406227..0fd6b9e49b 100644
> --- a/gnu/packages/monitoring.scm
> +++ b/gnu/packages/monitoring.scm
> @@ -447,3 +447,27 @@ written in Go with pluggable metric collectors.")
>      (description "This package provides a file system monitor.")
>      (home-page "https://github.com/emcrisostomo/fswatch")
>      (license license:gpl3+)))
> +
> +(define-public go-github-com-prometheus-prometheud-cmd-prometheus
> +  (package
> +    (name "go-github-com-prometheus-prometheus-cmd-prometheus")
> +    (version "2.7.1")
> +    (source (origin
> +              (method git-fetch)
> +              (uri (git-reference
> +                    (url "https://github.com/prometheus/prometheus.git")
> +                    (commit (string-append "v" version))))
> +              (file-name (git-file-name name version))
> +              (sha256
> +               (base32
> +                "08nd88m162bw5612cvw5fl028l2n9jy1v4w2a8cyd0dj4lxs5d98"))))
> +    (build-system go-build-system)
> +    (arguments
> +     '(#:import-path "github.com/prometheus/prometheus/cmd/prometheus"
> +       #:unpack-path "github.com/prometheus/prometheus"))
> +    (synopsis "Monitoring system & time series database")
> +    (description "Prometheus is an open-source monitoring system with a
> +dimensional data model, flexible query language, efficient time series database
> +and modern alerting approach.")
> +    (home-page "https://github.com/prometheus/node_exporter")
> +    (license license:asl2.0)))

Because the Go ecosystem changed a bit since the submission, do we merge
this patch?  Especially in the light of:

        There are some problems with it however:

        The tarball has a vendor directory, containing sources of third party
        go stuff. How do we deal with that?
        (Should we package the stuff there, and link the sources into the tree?)

        <https://issues.guix.gnu.org/issue/34613#1>

Well, I propose to drop this submission since the last interaction is
from 3 years, 2 weeks, 6 days ago and then start a fresh one.  WDYT?

Cheers,
simon