2024-07-20 20:45:01 +01:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2024-07-24 21:41:54 +01:00
|
|
|
|
;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
|
2024-07-25 11:22:07 +01:00
|
|
|
|
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
2024-07-21 13:28:45 +01:00
|
|
|
|
;;; Copyright © 2018, 2019, 2020 Leo Famulari <leo@famulari.name>
|
2024-07-25 11:22:07 +01:00
|
|
|
|
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
|
2024-07-24 21:41:54 +01:00
|
|
|
|
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
|
2024-07-25 10:38:22 +01:00
|
|
|
|
;;; Copyright © 2024 Dominic Martinez <dom@dominicm.dev>
|
2024-07-21 13:28:45 +01:00
|
|
|
|
;;; Copyright © 2024 Jesse Eisses <jesse@eisses.email>
|
2024-07-25 10:38:22 +01:00
|
|
|
|
;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus@gmail.com>
|
2024-07-25 11:22:07 +01:00
|
|
|
|
;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
|
2024-07-20 20:45:01 +01:00
|
|
|
|
;;;
|
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
|
;;;
|
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
|
;;;
|
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
|
;;;
|
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages prometheus)
|
|
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
|
|
#:use-module (guix build-system go)
|
|
|
|
|
|
#:use-module (guix gexp)
|
|
|
|
|
|
#:use-module (guix git-download)
|
|
|
|
|
|
#:use-module (guix packages)
|
2024-08-27 10:01:27 +01:00
|
|
|
|
#:use-module (guix utils)
|
2024-07-21 13:28:45 +01:00
|
|
|
|
#:use-module (gnu packages)
|
2024-07-24 16:37:03 +01:00
|
|
|
|
#:use-module (gnu packages golang-build)
|
|
|
|
|
|
#:use-module (gnu packages golang-check)
|
2024-12-27 16:07:13 +00:00
|
|
|
|
#:use-module (gnu packages golang-compression)
|
2024-07-25 10:24:15 +01:00
|
|
|
|
#:use-module (gnu packages golang-crypto)
|
2024-07-24 16:37:03 +01:00
|
|
|
|
#:use-module (gnu packages golang-web)
|
|
|
|
|
|
#:use-module (gnu packages golang-xyz))
|
2024-07-20 20:45:01 +01:00
|
|
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
;;;
|
|
|
|
|
|
;;; Libraries and commands related to, or provided by Prometheus project
|
|
|
|
|
|
;;; <https://prometheus.io>.
|
|
|
|
|
|
;;;
|
|
|
|
|
|
;;; Please: Try to add new module packages in alphabetic order.
|
|
|
|
|
|
;;;
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
|
|
|
|
;;;
|
|
|
|
|
|
;;; Libraries:
|
|
|
|
|
|
;;;
|
|
|
|
|
|
|
2025-02-28 11:18:26 +00:00
|
|
|
|
(define-public go-contrib-go-opencensus-io-exporter-prometheus
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "go-contrib-go-opencensus-io-exporter-prometheus")
|
|
|
|
|
|
(version "0.4.2")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url
|
|
|
|
|
|
"https://github.com/census-ecosystem/opencensus-go-exporter-prometheus")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "0n09d2nbng4bws9vi2ddq2ffv9hr0c3i9mif6fkjr4chyyyiy8ik"))))
|
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:import-path "contrib.go.opencensus.io/exporter/prometheus"))
|
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
|
(list go-github-com-google-go-cmp
|
|
|
|
|
|
go-github-com-prometheus-client-golang
|
|
|
|
|
|
go-github-com-prometheus-statsd-exporter
|
|
|
|
|
|
go-go-opencensus-io))
|
|
|
|
|
|
(home-page "https://github.com/census-ecosystem/opencensus-go-exporter-prometheus")
|
|
|
|
|
|
(synopsis "OpenCensus Go Prometheus Exporter")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"Package prometheus contains a Prometheus exporter that supports
|
|
|
|
|
|
exporting @code{OpenCensus} views as Prometheus metrics.")
|
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
2025-07-10 14:58:55 +01:00
|
|
|
|
(define-public go-github-com-grpc-ecosystem-go-grpc-prometheus
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "go-github-com-grpc-ecosystem-go-grpc-prometheus")
|
|
|
|
|
|
(version "1.2.0")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/grpc-ecosystem/go-grpc-prometheus")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "1lzk54h7np32b3acidg1ggbn8ppbnns0m71gcg9d1qkkdh8zrijl"))))
|
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
;; Source only package, go-github-com-osrg-gobgp-v3@3.37.0 still needs
|
|
|
|
|
|
;; it while the project is archived. Remove when no longer required.
|
|
|
|
|
|
#:skip-build? #t
|
|
|
|
|
|
#:tests? #f
|
|
|
|
|
|
#:import-path "github.com/grpc-ecosystem/go-grpc-prometheus"))
|
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
|
(list go-github-com-prometheus-client-golang
|
|
|
|
|
|
go-golang-org-x-net
|
|
|
|
|
|
go-google-golang-org-grpc))
|
|
|
|
|
|
(home-page "https://github.com/grpc-ecosystem/go-grpc-prometheus")
|
|
|
|
|
|
(synopsis "Go gRPC Interceptors for Prometheus monitoring")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"This package implements a Prometheus monitoring for your
|
|
|
|
|
|
@url{https://github.com/grpc/grpc-go, gRPC Go} servers and clients.")
|
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
2024-07-24 16:37:03 +01:00
|
|
|
|
(define-public go-github-com-mwitkow-go-conntrack
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "go-github-com-mwitkow-go-conntrack")
|
|
|
|
|
|
(version "0.0.0-20190716064945-2f068394615f")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/mwitkow/go-conntrack")
|
|
|
|
|
|
(commit (go-version->git-ref version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "0ymjmy12ks7smgwmrwsa5kf07d9w5kpk1dn650azlzr61b561aw7"))))
|
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:tests? #f
|
|
|
|
|
|
#:import-path "github.com/mwitkow/go-conntrack"
|
|
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
;; Breaking cycle:
|
|
|
|
|
|
;; go-github-com-prometheus-common ->
|
|
|
|
|
|
;; go-github-com-prometheus-client-golang ->
|
|
|
|
|
|
;; go-github-com-mwitkow-go-conntrack ->
|
|
|
|
|
|
;; go-github-com-prometheus-common
|
|
|
|
|
|
(delete 'build))))
|
|
|
|
|
|
(native-inputs
|
|
|
|
|
|
(list go-github-com-stretchr-testify))
|
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
|
(list go-github-com-jpillora-backoff
|
|
|
|
|
|
go-github-com-munnerz-goautoneg
|
|
|
|
|
|
;; go-github-com-prometheus-client-golang
|
|
|
|
|
|
go-golang-org-x-net))
|
|
|
|
|
|
(home-page "https://github.com/mwitkow/go-conntrack")
|
|
|
|
|
|
(synopsis "Go middleware for @code{net.Conn} tracking")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"@url{https://prometheus.io/,Prometheus} monitoring and
|
|
|
|
|
|
@url{https://godoc.org/golang.org/x/net/trace#@code{EventLog,(code}
|
|
|
|
|
|
x/net/trace)} tracing wrappers @code{net.Conn}, both inbound
|
|
|
|
|
|
(@@code{net.Listener}) and outbound (@@code{net.Dialer}).")
|
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
2024-07-25 10:38:22 +01:00
|
|
|
|
(define-public go-github-com-nbrownus-go-metrics-prometheus
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "go-github-com-nbrownus-go-metrics-prometheus")
|
|
|
|
|
|
(version "0.0.0-20210712211119-974a6260965f")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/nbrownus/go-metrics-prometheus")
|
|
|
|
|
|
(commit (go-version->git-ref version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "1kl9l08aas544627zmhkgp843qx94sxs4inxm20nw1hx7gp79dz0"))))
|
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
;; The project looks abandoned, tests failed with a new go-metrics, see
|
|
|
|
|
|
;; <https://github.com/nbrownus/go-metrics-prometheus/pull/2>.
|
|
|
|
|
|
#:tests? #f
|
gnu: build/go: Apply default 'fix-embed-files phase.
These changes remove redundant phases where files, requiring to be embed
during build or check phases, are copied to the build directory as
proposed in <https://issues.guix.gnu.org/73299>.
* gnu/packages/backup.scm (restic-rest-server) [arguments]: <#:phases>:
Remove 'fix-embed-files phase.
* gnu/packages/configuration-management.scm (chezmoi): Likewise.
* gnu/packages/packages/golang-build.scm (go-github-com-golang-protobuf): Likewise.
* gnu/packages/golang-web.scm (go-github-com-go-openapi-loads,
go-github-com-go-openapi-runtime, go-github-com-golang-groupcache): Likewise.
* gnu/packages/golang-xyz.scm (go-github-com-dgraph-io-badger): Likewise.
* gnu/packages/golang.scm (go-github-com-ssgelm-cookiejarparser): Likewise.
* gnu/packages/ipfs.scm (go-github-com-ipfs-go-ds-badger,
go-github-com-libp2p-go-libp2p, kubo): Likewise.
* gnu/packages/irc.scm (soju): Likewise.
* gnu/packages/networking.scm (nebula): Likewise.
* gnu/packages/prometheus.scm (go-github-com-nbrownus-go-metrics-prometheus,
go-github-com-prometheus-client-golang, go-github-com-prometheus-common,
go-github-com-prometheus-common-sigv4, go-github-com-prometheus-exporter-toolkit,
go-github-com-prometheus-statsd-exporter): Likewise
* gnu/packages/version-control.scm (git-lfs): Likewise.
* gnu/packages/web.scm (miniflux): Likewise.
* gnu/packages/golang-crypto.scm (go-filippo-io-age): [arguments]:
<#:phases>: Remove 'copy-input-to-vendor-direcotyr and
'remove-vendor-directory phases.
* gnu/packages/golang-web.scm (go-github-com-go-openapi-analysis,
go-github-com-go-openapi-analysis, go-github-com-go-openapi-validate): Likewise.
* gnu/packages/golang.scm (go-github-com-charmbracelet-glamour): Likewise.
* gnu/packages/textutils.scm (vale): Likewise.
Change-Id: Ic2ec01c8caf86f3ae69d7a1812c1e0b78a549e91
2024-09-19 14:00:56 +01:00
|
|
|
|
#:import-path "github.com/nbrownus/go-metrics-prometheus"))
|
2024-07-25 10:38:22 +01:00
|
|
|
|
(native-inputs
|
|
|
|
|
|
(list go-github-com-stretchr-testify))
|
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
|
(list go-github-com-prometheus-client-golang
|
|
|
|
|
|
go-github-com-rcrowley-go-metrics))
|
|
|
|
|
|
(home-page "https://github.com/nbrownus/go-metrics-prometheus")
|
|
|
|
|
|
(synopsis "Prometheus support for go-metrics")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"This package provides a reporter for the @code{go-metrics} library which
|
|
|
|
|
|
posts the metrics to the Prometheus client registry and just updates the
|
|
|
|
|
|
registry.")
|
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
2025-10-10 00:53:53 +01:00
|
|
|
|
(define-public go-github-com-prometheus-alertmanager
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "go-github-com-prometheus-alertmanager")
|
|
|
|
|
|
(version "0.28.1")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/prometheus/alertmanager")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "1zar5l92a0f3ghm7ndijadzjm6va1qpnxksrah7pxza95pnx0wfq"))
|
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
|
(snippet
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
;; TODO: UI is shipped with JS/TS, CSS, and font libraries
|
|
|
|
|
|
;; required to build CLI <cmd/alertmanager>:
|
|
|
|
|
|
;; - ui/app/lib/bootstrap-4.0.0-alpha.6-dist/css
|
|
|
|
|
|
;; - ui/app/lib/elm-datepicker/css
|
|
|
|
|
|
;; - ui/app/lib/font-awesome-4.7.0
|
|
|
|
|
|
;; - ui/react-app
|
|
|
|
|
|
(delete-file-recursively "ui")))))
|
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:skip-build? #t
|
|
|
|
|
|
#:import-path "github.com/prometheus/alertmanager"
|
|
|
|
|
|
#:embed-files #~(list ".*\\.css" ".*\\.html" ".*\\.json")
|
|
|
|
|
|
;; XXX: Enable all when UI is packaged.
|
|
|
|
|
|
#:test-subdirs #~(list "api/v2"
|
|
|
|
|
|
"cli/config"
|
|
|
|
|
|
"dispatch"
|
|
|
|
|
|
"featurecontrol"
|
|
|
|
|
|
"inhibit"
|
|
|
|
|
|
"matcher/compliance"
|
|
|
|
|
|
"matcher/parse"
|
|
|
|
|
|
"nflog"
|
|
|
|
|
|
"nflog/nflogpb"
|
|
|
|
|
|
"notify"
|
|
|
|
|
|
"notify/discord"
|
|
|
|
|
|
"notify/email"
|
|
|
|
|
|
"notify/msteams"
|
|
|
|
|
|
"notify/msteamsv2"
|
|
|
|
|
|
"notify/opsgenie"
|
|
|
|
|
|
"notify/pagerduty"
|
|
|
|
|
|
"notify/pushover"
|
|
|
|
|
|
"notify/rocketchat"
|
|
|
|
|
|
"notify/slack"
|
|
|
|
|
|
"notify/sns"
|
|
|
|
|
|
"notify/telegram"
|
|
|
|
|
|
"notify/victorops"
|
|
|
|
|
|
"notify/webex"
|
|
|
|
|
|
"notify/webhook"
|
|
|
|
|
|
"notify/wechat"
|
|
|
|
|
|
"pkg/labels"
|
|
|
|
|
|
"provider/mem"
|
|
|
|
|
|
"store"
|
|
|
|
|
|
"template"
|
|
|
|
|
|
"timeinterval"
|
|
|
|
|
|
"types")
|
|
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
(add-after 'unpack 'remove-examples
|
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
|
(delete-file-recursively "examples")))))))
|
|
|
|
|
|
(native-inputs
|
|
|
|
|
|
(list go-github-com-emersion-go-smtp
|
|
|
|
|
|
go-github-com-kylelemons-godebug
|
|
|
|
|
|
go-github-com-stretchr-testify
|
|
|
|
|
|
go-go-uber-org-atomic))
|
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
|
(list go-github-com-alecthomas-kingpin-v2
|
|
|
|
|
|
go-github-com-alecthomas-units
|
|
|
|
|
|
go-github-com-aws-aws-sdk-go
|
|
|
|
|
|
go-github-com-cenkalti-backoff-v4
|
|
|
|
|
|
go-github-com-cespare-xxhash-v2
|
|
|
|
|
|
go-github-com-coder-quartz
|
|
|
|
|
|
go-github-com-go-openapi-analysis
|
|
|
|
|
|
go-github-com-go-openapi-errors
|
|
|
|
|
|
go-github-com-go-openapi-loads
|
|
|
|
|
|
go-github-com-go-openapi-runtime
|
|
|
|
|
|
go-github-com-go-openapi-spec
|
|
|
|
|
|
go-github-com-go-openapi-strfmt
|
|
|
|
|
|
go-github-com-go-openapi-swag
|
|
|
|
|
|
go-github-com-go-openapi-validate
|
|
|
|
|
|
go-github-com-gofrs-uuid
|
|
|
|
|
|
go-github-com-gogo-protobuf
|
|
|
|
|
|
go-github-com-hashicorp-go-sockaddr
|
|
|
|
|
|
go-github-com-hashicorp-golang-lru-v2
|
|
|
|
|
|
go-github-com-hashicorp-memberlist
|
|
|
|
|
|
go-github-com-jessevdk-go-flags
|
|
|
|
|
|
go-github-com-kimmachinegun-automemlimit
|
|
|
|
|
|
go-github-com-matttproud-golang-protobuf-extensions
|
|
|
|
|
|
go-github-com-oklog-run
|
|
|
|
|
|
go-github-com-oklog-ulid
|
|
|
|
|
|
go-github-com-prometheus-client-golang
|
|
|
|
|
|
go-github-com-prometheus-common
|
|
|
|
|
|
go-github-com-prometheus-common-assets
|
|
|
|
|
|
go-github-com-prometheus-exporter-toolkit
|
|
|
|
|
|
go-github-com-prometheus-sigv4
|
|
|
|
|
|
go-github-com-rs-cors
|
|
|
|
|
|
go-github-com-shurcool-httpfs
|
|
|
|
|
|
go-github-com-shurcool-vfsgen
|
|
|
|
|
|
;; go-github-com-trivago-tgo
|
|
|
|
|
|
go-github-com-xlab-treeprint
|
|
|
|
|
|
go-go-uber-org-automaxprocs
|
|
|
|
|
|
go-golang-org-x-mod
|
|
|
|
|
|
go-golang-org-x-net
|
|
|
|
|
|
go-golang-org-x-text
|
|
|
|
|
|
go-golang-org-x-tools
|
|
|
|
|
|
go-gopkg-in-telebot-v3
|
|
|
|
|
|
go-gopkg-in-yaml-v2))
|
|
|
|
|
|
(home-page "https://github.com/prometheus/alertmanager")
|
|
|
|
|
|
(synopsis "Prometheus Alertmanager")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"The Alertmanager handles alerts sent by client applications such as the
|
|
|
|
|
|
Prometheus server. It takes care of deduplicating, grouping, and routing them
|
|
|
|
|
|
to the correct
|
|
|
|
|
|
@url{https://prometheus.io/docs/alerting/latest/configuration/#receiver,
|
|
|
|
|
|
receiver integrations} such as email, @code{PagerDuty}, @code{OpsGenie}, or
|
|
|
|
|
|
many other
|
|
|
|
|
|
@url{https://prometheus.io/docs/operating/integrations/#alertmanager-webhook-receiver,
|
|
|
|
|
|
mechanisms} thanks to the webhook receiver. It also takes care of silencing
|
|
|
|
|
|
and inhibition of alerts.")
|
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
2024-07-25 10:24:15 +01:00
|
|
|
|
(define-public go-github-com-prometheus-client-golang
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "go-github-com-prometheus-client-golang")
|
2025-06-08 17:48:00 +01:00
|
|
|
|
(version "1.22.0")
|
2024-07-25 10:24:15 +01:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/prometheus/client_golang")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2025-06-08 17:48:00 +01:00
|
|
|
|
(base32 "08japwfsl7wlw6z8dkfdrhpgxr2w6frbinn96ksn0izab2h9s5gd"))
|
2024-12-27 16:07:13 +00:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
|
(snippet
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
;; Submodules with their own go.mod files and packaged separately:
|
|
|
|
|
|
;;
|
|
|
|
|
|
;; - .bingo - fake module
|
|
|
|
|
|
(delete-file-recursively ".bingo")))))
|
2024-07-25 10:24:15 +01:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
2024-12-27 16:07:13 +00:00
|
|
|
|
#:skip-build? #t
|
2024-08-27 14:03:38 +01:00
|
|
|
|
;; XXX: Check if the most of the tests may be enabled:
|
|
|
|
|
|
;; api/prometheus/v1/api_test.go:1063:23: cannot use 1634644800304
|
|
|
|
|
|
;; (untyped int constant) as int value in map literal (overflows)
|
|
|
|
|
|
#:tests? (target-64bit?)
|
2024-07-25 10:24:15 +01:00
|
|
|
|
#:import-path "github.com/prometheus/client_golang"
|
2025-02-03 13:48:00 +00:00
|
|
|
|
#:test-flags
|
|
|
|
|
|
#~(list "-skip" (string-append
|
|
|
|
|
|
;; Test fails with Assertion error.
|
|
|
|
|
|
"TestHandler"
|
|
|
|
|
|
;; Test fails on aarch64-linux system.
|
|
|
|
|
|
#$@(if (not (target-x86-64?))
|
|
|
|
|
|
'("|TestProcessCollector")
|
|
|
|
|
|
'())))
|
2024-07-25 10:24:15 +01:00
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
(add-after 'unpack 'remove-examples-and-tutorials
|
|
|
|
|
|
(lambda* (#:key import-path #:allow-other-keys)
|
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
|
|
(list "api/prometheus/v1/example_test.go"
|
|
|
|
|
|
"examples"
|
2024-12-27 16:07:13 +00:00
|
|
|
|
"tutorials"))))))))
|
2024-07-25 10:24:15 +01:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
|
(list go-github-com-beorn7-perks
|
|
|
|
|
|
go-github-com-cespare-xxhash-v2
|
2024-12-27 16:07:13 +00:00
|
|
|
|
go-github-com-google-go-cmp
|
2024-07-25 10:24:15 +01:00
|
|
|
|
go-github-com-json-iterator-go
|
2024-12-27 16:07:13 +00:00
|
|
|
|
go-github-com-klauspost-compress
|
|
|
|
|
|
go-github-com-kylelemons-godebug
|
2024-07-25 10:24:15 +01:00
|
|
|
|
go-github-com-prometheus-client-model
|
|
|
|
|
|
go-github-com-prometheus-common
|
|
|
|
|
|
go-github-com-prometheus-procfs
|
|
|
|
|
|
go-golang-org-x-sys
|
|
|
|
|
|
go-google-golang-org-protobuf))
|
|
|
|
|
|
(home-page "https://github.com/prometheus/client_golang")
|
|
|
|
|
|
(synopsis "HTTP server and client tools for Prometheus")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"This package @code{promhttp} provides HTTP client and server tools for
|
|
|
|
|
|
Prometheus metrics.")
|
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
2024-07-21 13:28:45 +01:00
|
|
|
|
(define-public go-github-com-prometheus-client-model
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "go-github-com-prometheus-client-model")
|
|
|
|
|
|
(version "0.6.1")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/prometheus/client_model")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "0g1q2szzwp4rwkvayi2mnq2nwj6hj4ja7j43vwyi1iaz6d9z505c"))))
|
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
2025-03-28 22:29:01 +00:00
|
|
|
|
#:skip-build? #t
|
|
|
|
|
|
#:import-path "github.com/prometheus/client_model"))
|
2024-07-21 13:28:45 +01:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
|
(list go-github-com-golang-protobuf))
|
|
|
|
|
|
(home-page "https://github.com/prometheus/client_model")
|
|
|
|
|
|
(synopsis "Data model artifacts for Prometheus")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"This package provides data model artifacts for Prometheus.")
|
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
2024-07-24 21:41:54 +01:00
|
|
|
|
(define-public go-github-com-prometheus-common
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "go-github-com-prometheus-common")
|
2025-03-28 22:13:18 +00:00
|
|
|
|
(version "0.63.0")
|
2024-07-24 21:41:54 +01:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/prometheus/common")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2025-03-28 22:13:18 +00:00
|
|
|
|
(base32 "0jf6wqx16zipp2dyjd6n4fdkp5i1hh4ranjcm5iph5rdvcry06m3"))
|
2024-07-24 21:41:54 +01:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
|
(snippet
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
;; Submodules with their own go.mod files and packed as
|
|
|
|
|
|
;; separated packages:
|
|
|
|
|
|
;;
|
|
|
|
|
|
;; - github.com/prometheus/common/assets
|
2025-03-28 22:13:18 +00:00
|
|
|
|
(delete-file-recursively "assets")))))
|
2024-07-24 21:41:54 +01:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
2025-03-28 22:03:36 +00:00
|
|
|
|
#:skip-build? #t
|
2024-07-24 21:41:54 +01:00
|
|
|
|
#:import-path "github.com/prometheus/common"
|
2025-03-28 22:03:36 +00:00
|
|
|
|
#:test-subdirs
|
|
|
|
|
|
#~(list
|
|
|
|
|
|
;; Skipp, as it requires
|
|
|
|
|
|
;; <github.com/prometheus/client_golang/prometheus>, which introduces
|
|
|
|
|
|
;; cycle.
|
|
|
|
|
|
;; "./config/..."
|
2024-08-27 10:01:27 +01:00
|
|
|
|
|
2025-03-28 22:03:36 +00:00
|
|
|
|
;; Some tests fail on non x86_64 architecture: Cannot use 9223372036
|
|
|
|
|
|
;; (untyped int constant) as int value in ;; struct literal
|
|
|
|
|
|
;; (overflows). Cannot use math.MaxInt64 (untyped int constant
|
|
|
|
|
|
;; 9223372036854775807) as int value in argument to HumanizeTimestamp
|
|
|
|
|
|
;; (overflows)
|
|
|
|
|
|
#$@(if (target-x86-64?)
|
|
|
|
|
|
'("./helpers/...")
|
|
|
|
|
|
'())
|
|
|
|
|
|
"./expfmt/..."
|
|
|
|
|
|
"./model/..."
|
|
|
|
|
|
"./promlog/..."
|
|
|
|
|
|
"./route/..."
|
|
|
|
|
|
"./server/...")))
|
2024-07-24 21:41:54 +01:00
|
|
|
|
(native-inputs
|
|
|
|
|
|
(list go-github-com-stretchr-testify))
|
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
|
(list go-github-com-alecthomas-kingpin-v2
|
|
|
|
|
|
go-github-com-google-go-cmp
|
|
|
|
|
|
go-github-com-julienschmidt-httprouter
|
|
|
|
|
|
go-github-com-munnerz-goautoneg
|
|
|
|
|
|
go-github-com-mwitkow-go-conntrack
|
|
|
|
|
|
go-github-com-prometheus-client-model
|
|
|
|
|
|
go-golang-org-x-net
|
|
|
|
|
|
go-golang-org-x-oauth2
|
|
|
|
|
|
go-google-golang-org-protobuf
|
|
|
|
|
|
go-gopkg-in-yaml-v2))
|
|
|
|
|
|
(home-page "https://github.com/prometheus/common")
|
2025-03-28 22:03:36 +00:00
|
|
|
|
(synopsis "Shared Prometheus Golang components")
|
2024-07-24 21:41:54 +01:00
|
|
|
|
(description
|
2025-03-28 22:03:36 +00:00
|
|
|
|
"This package provides Go libraries that are shared across Prometheus
|
|
|
|
|
|
components.
|
|
|
|
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
|
|
@item @code{config} - common configuration structures
|
|
|
|
|
|
@item @code{expfmt} - decoding and encoding for the exposition format
|
|
|
|
|
|
@item @code{model} - shared data structures
|
|
|
|
|
|
@item @code{promslog} - a logging wrapper around log/slog
|
|
|
|
|
|
@item @code{route} - a routing wrapper around httprouter using context.Context
|
|
|
|
|
|
@item @code{server} - common servers
|
|
|
|
|
|
@item @code{version} version information and metrics
|
|
|
|
|
|
@end itemize")
|
2024-07-24 21:41:54 +01:00
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
2024-07-24 21:50:23 +01:00
|
|
|
|
(define-public go-github-com-prometheus-common-assets
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "go-github-com-prometheus-common-assets")
|
2024-12-27 20:26:05 +00:00
|
|
|
|
(version "0.2.0")
|
2024-07-24 21:50:23 +01:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/prometheus/common")
|
2024-12-27 20:26:05 +00:00
|
|
|
|
(commit (go-version->git-ref version
|
|
|
|
|
|
#:subdir "assets"))))
|
2024-07-24 21:50:23 +01:00
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2024-12-27 20:26:05 +00:00
|
|
|
|
(base32 "0r7sym4yaysbkc5anyypl57v9ay0a1flq00j85j7lcficl2scwrs"))))
|
2024-07-24 21:50:23 +01:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:import-path "github.com/prometheus/common/assets"
|
|
|
|
|
|
#:unpack-path "github.com/prometheus/common"))
|
|
|
|
|
|
(home-page "https://github.com/prometheus/common")
|
|
|
|
|
|
(synopsis "Prometheus assets")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"This package provides Prometheus assets.")
|
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
2024-09-22 21:13:05 +01:00
|
|
|
|
(define-public go-github-com-prometheus-community-pro-bing
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "go-github-com-prometheus-community-pro-bing")
|
2024-12-27 20:43:44 +00:00
|
|
|
|
(version "0.5.0")
|
2024-09-22 21:13:05 +01:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/prometheus-community/pro-bing")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2024-12-27 20:43:44 +00:00
|
|
|
|
(base32 "19757nqz0cpq7ir2w5xgjxpblhmkpk0j7spfw4j68agavbx6hxpm"))))
|
2024-09-22 21:13:05 +01:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
2024-12-27 20:43:44 +00:00
|
|
|
|
;; Tests requiring network setup, and root access.
|
2024-09-22 21:13:05 +01:00
|
|
|
|
#:test-flags
|
2024-12-27 20:43:44 +00:00
|
|
|
|
#~(list "-skip"
|
|
|
|
|
|
(string-join
|
|
|
|
|
|
(list "TestNewPingerValid"
|
|
|
|
|
|
"TestSetIPAddr"
|
|
|
|
|
|
"TestSetInterfaceName"
|
|
|
|
|
|
"TestSetResolveTimeout")
|
|
|
|
|
|
"|"))
|
2024-09-22 21:13:05 +01:00
|
|
|
|
#:import-path "github.com/prometheus-community/pro-bing"))
|
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
|
(list go-github-com-google-uuid
|
|
|
|
|
|
go-golang-org-x-net
|
|
|
|
|
|
go-golang-org-x-sync))
|
|
|
|
|
|
(home-page "https://github.com/prometheus-community/pro-bing")
|
|
|
|
|
|
(synopsis "Continuous probers Golang library")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"This package implements @acronym{Internet Control Message
|
|
|
|
|
|
Protocol,ICMP} echo (ping) functionality.")
|
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
2024-08-25 12:05:27 +01:00
|
|
|
|
(define-public go-github-com-prometheus-exporter-toolkit
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "go-github-com-prometheus-exporter-toolkit")
|
2024-12-27 20:15:25 +00:00
|
|
|
|
(version "0.13.2")
|
2024-08-25 12:05:27 +01:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/prometheus/exporter-toolkit")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2024-12-27 20:15:25 +00:00
|
|
|
|
(base32 "05k4sfrc1zs96iprgnap0gd42vwfq47j6vg2bv83nckcv731gmiv"))))
|
2024-08-25 12:05:27 +01:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:import-path "github.com/prometheus/exporter-toolkit"
|
|
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
;; XXX: Workaround for go-build-system's lack of Go modules support.
|
|
|
|
|
|
(delete 'build)
|
|
|
|
|
|
(replace 'check
|
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
|
(when tests?
|
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
2024-09-13 22:00:22 +01:00
|
|
|
|
(invoke "go" "test" "-v"
|
|
|
|
|
|
"-skip" "TestServerBehaviour|TestConfigReloading"
|
|
|
|
|
|
"./..."))))))))
|
|
|
|
|
|
(native-inputs
|
|
|
|
|
|
(list go-google-golang-org-protobuf))
|
2024-08-25 12:05:27 +01:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
|
(list go-github-com-alecthomas-kingpin-v2
|
|
|
|
|
|
go-github-com-coreos-go-systemd-v22
|
|
|
|
|
|
go-github-com-go-kit-log
|
2024-12-27 20:15:25 +00:00
|
|
|
|
go-github-com-mdlayher-vsock
|
2024-08-25 12:05:27 +01:00
|
|
|
|
; Imported for go-github-com-prometheus-common to break the cycle.
|
|
|
|
|
|
go-github-com-prometheus-client-golang
|
|
|
|
|
|
go-github-com-prometheus-common
|
|
|
|
|
|
go-golang-org-x-crypto
|
|
|
|
|
|
go-golang-org-x-sync
|
|
|
|
|
|
go-gopkg-in-yaml-v2))
|
|
|
|
|
|
(home-page "https://github.com/prometheus/exporter-toolkit")
|
|
|
|
|
|
(synopsis "Utility package to build Prometheus exporters")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"This package provides tooling to build Prometheus exporters")
|
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
2025-10-13 21:39:25 -03:00
|
|
|
|
(define-public go-github-com-prometheus-otlptranslator
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "go-github-com-prometheus-otlptranslator")
|
|
|
|
|
|
(version "1.0.0")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/prometheus/otlptranslator")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "1naca6ima2bzf6yhb2w9favqx644c0q1y16jlb2na7s4bgr3107p"))))
|
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:import-path "github.com/prometheus/otlptranslator"))
|
|
|
|
|
|
(home-page "https://github.com/prometheus/otlptranslator")
|
|
|
|
|
|
(synopsis "OTLP Prometheus Translator")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"This package provides a functionality to convert
|
|
|
|
|
|
@url{https://opentelemetry.io/docs/specs/otlp/, OTLP} metric and attribute
|
|
|
|
|
|
names to @url{https://prometheus.io/, Prometheus-compliant} formats. This is
|
|
|
|
|
|
an internal library for both Prometheus and Open Telemetry,")
|
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
2024-07-25 11:22:07 +01:00
|
|
|
|
(define-public go-github-com-prometheus-procfs
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "go-github-com-prometheus-procfs")
|
2025-05-27 19:23:57 +01:00
|
|
|
|
(version "0.16.1")
|
2024-07-25 11:22:07 +01:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/prometheus/procfs")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2025-05-27 19:23:57 +01:00
|
|
|
|
(base32 "0k2x2kqghr34ggc888ldaj0crx6zvxclr3c3r6n3nhznjwx0p79f"))))
|
2024-07-25 11:22:07 +01:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
2024-08-27 12:47:04 +01:00
|
|
|
|
;; XXX: Check if the most of the tests may be enabled on non x86_64
|
|
|
|
|
|
;; architectures, disable for now: ./proc_stat_test.go:98:49: cannot use
|
|
|
|
|
|
;; math.MinInt64 (untyped int constant -9223372036854775808) as int
|
|
|
|
|
|
;; value in struct literal (overflows).
|
|
|
|
|
|
#:tests? (target-x86-64?)
|
2024-07-25 11:22:07 +01:00
|
|
|
|
#:import-path "github.com/prometheus/procfs"
|
2024-08-25 17:35:26 +01:00
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
(add-before 'check 'unpack-testdata
|
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
|
(invoke "./ttar" "-C" "testdata/" "-x" "-f" "testdata/fixtures.ttar"))))
|
|
|
|
|
|
(add-after 'check 'remove-testdata
|
|
|
|
|
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
|
|
|
|
(with-directory-excursion (string-append "src/" import-path)
|
|
|
|
|
|
(delete-file-recursively "testdata")))))))
|
2024-07-25 11:22:07 +01:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
|
(list go-github-com-google-go-cmp
|
|
|
|
|
|
go-golang-org-x-sync
|
|
|
|
|
|
go-golang-org-x-sys))
|
|
|
|
|
|
(synopsis "Go library for reading @file{/proc}")
|
|
|
|
|
|
(home-page "https://github.com/prometheus/procfs")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"The @code{procfs} Go package provides functions to retrieve system,
|
|
|
|
|
|
kernel, and process metrics from the @file{/proc} pseudo file system.")
|
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
2025-03-28 21:19:34 +00:00
|
|
|
|
(define-public go-github-com-prometheus-sigv4
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "go-github-com-prometheus-sigv4")
|
|
|
|
|
|
(version "0.1.2")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/prometheus/sigv4")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "0yw37lw4x2l20l02i6yd4m4x948vgrfyaa0csl155rdyq3ynwa5w"))))
|
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:import-path "github.com/prometheus/sigv4"))
|
|
|
|
|
|
(native-inputs
|
|
|
|
|
|
(list go-github-com-stretchr-testify))
|
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
|
(list go-github-com-aws-aws-sdk-go
|
|
|
|
|
|
go-github-com-prometheus-client-golang
|
|
|
|
|
|
go-github-com-prometheus-common
|
|
|
|
|
|
go-gopkg-in-yaml-v2))
|
|
|
|
|
|
(home-page "https://github.com/prometheus/sigv4")
|
|
|
|
|
|
(synopsis "HTTP signed requests with Amazon's Signature Verification V4")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"sigv4 provides a @code{http.RoundTripper} that will sign requests using
|
|
|
|
|
|
Amazon's Signature Verification V4 signing procedure, using credentials from
|
|
|
|
|
|
the default AWS credential chain.")
|
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
2024-08-25 12:47:00 +01:00
|
|
|
|
(define-public go-github-com-prometheus-statsd-exporter
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "go-github-com-prometheus-statsd-exporter")
|
2024-12-27 20:40:17 +00:00
|
|
|
|
(version "0.28.0")
|
2024-08-25 12:47:00 +01:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/prometheus/statsd_exporter")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2024-12-27 20:40:17 +00:00
|
|
|
|
(base32 "0h7ypmsx1j6x1p5wdj03i3jzwms7ab03asn2capl1gg6x07k57w7"))))
|
2024-08-25 12:47:00 +01:00
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:import-path "github.com/prometheus/statsd_exporter"
|
gnu: build/go: Apply default 'fix-embed-files phase.
These changes remove redundant phases where files, requiring to be embed
during build or check phases, are copied to the build directory as
proposed in <https://issues.guix.gnu.org/73299>.
* gnu/packages/backup.scm (restic-rest-server) [arguments]: <#:phases>:
Remove 'fix-embed-files phase.
* gnu/packages/configuration-management.scm (chezmoi): Likewise.
* gnu/packages/packages/golang-build.scm (go-github-com-golang-protobuf): Likewise.
* gnu/packages/golang-web.scm (go-github-com-go-openapi-loads,
go-github-com-go-openapi-runtime, go-github-com-golang-groupcache): Likewise.
* gnu/packages/golang-xyz.scm (go-github-com-dgraph-io-badger): Likewise.
* gnu/packages/golang.scm (go-github-com-ssgelm-cookiejarparser): Likewise.
* gnu/packages/ipfs.scm (go-github-com-ipfs-go-ds-badger,
go-github-com-libp2p-go-libp2p, kubo): Likewise.
* gnu/packages/irc.scm (soju): Likewise.
* gnu/packages/networking.scm (nebula): Likewise.
* gnu/packages/prometheus.scm (go-github-com-nbrownus-go-metrics-prometheus,
go-github-com-prometheus-client-golang, go-github-com-prometheus-common,
go-github-com-prometheus-common-sigv4, go-github-com-prometheus-exporter-toolkit,
go-github-com-prometheus-statsd-exporter): Likewise
* gnu/packages/version-control.scm (git-lfs): Likewise.
* gnu/packages/web.scm (miniflux): Likewise.
* gnu/packages/golang-crypto.scm (go-filippo-io-age): [arguments]:
<#:phases>: Remove 'copy-input-to-vendor-direcotyr and
'remove-vendor-directory phases.
* gnu/packages/golang-web.scm (go-github-com-go-openapi-analysis,
go-github-com-go-openapi-analysis, go-github-com-go-openapi-validate): Likewise.
* gnu/packages/golang.scm (go-github-com-charmbracelet-glamour): Likewise.
* gnu/packages/textutils.scm (vale): Likewise.
Change-Id: Ic2ec01c8caf86f3ae69d7a1812c1e0b78a549e91
2024-09-19 14:00:56 +01:00
|
|
|
|
#:embed-files #~(list "landing_page.css" "landing_page.html")))
|
2024-08-25 12:47:00 +01:00
|
|
|
|
(native-inputs
|
|
|
|
|
|
(list go-github-com-stvp-go-udp-testing))
|
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
|
(list go-github-com-alecthomas-kingpin-v2
|
|
|
|
|
|
go-github-com-go-kit-log
|
|
|
|
|
|
go-github-com-golang-groupcache
|
|
|
|
|
|
go-github-com-prometheus-client-golang
|
|
|
|
|
|
go-github-com-prometheus-client-model
|
|
|
|
|
|
go-github-com-prometheus-common
|
|
|
|
|
|
go-github-com-prometheus-exporter-toolkit
|
|
|
|
|
|
go-gopkg-in-yaml-v2))
|
|
|
|
|
|
(home-page "https://github.com/prometheus/statsd_exporter")
|
|
|
|
|
|
(synopsis "StatsD to Prometheus metrics exporter")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"The StatsD exporter is a drop-in replacement for
|
|
|
|
|
|
@url{https://github.com/statsd/statsd,StatsD}. The exporter translates StatsD
|
|
|
|
|
|
metrics to Prometheus metrics via configured mapping rules. This package
|
2025-02-19 11:11:03 +02:00
|
|
|
|
provides a Golang module and @code{statsd_exporter} executable command.")
|
2024-08-25 12:47:00 +01:00
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
2024-07-20 20:45:01 +01:00
|
|
|
|
;;;
|
|
|
|
|
|
;;; Executables:
|
|
|
|
|
|
;;;
|
|
|
|
|
|
|
|
|
|
|
|
;;;
|
|
|
|
|
|
;;; Avoid adding new packages to the end of this file. To reduce the chances
|
|
|
|
|
|
;;; of a merge conflict, place them above in alphabetic order.
|
|
|
|
|
|
;;;
|