mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: prometheus-postgres-exporter.
* gnu/packages/monitoring.scm (prometheus-postgres-exporter): New variable. Change-Id: I32c922244dbd485d0b882e7b150fc8c7d5624875 Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
8696eca5c0
commit
1aca7d3be8
1 changed files with 51 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
;;; Copyright © 2022 ( <paren@disroot.org>
|
||||
;;; Copyright © 2022 Mathieu Laparie <mlaparie@disr.it>
|
||||
;;; Copyright © 2025 Nicolas Graves <ngraves@ngraves.fr>
|
||||
;;; Copyright © 2025 Giacomo Leidi <goodoldpaul@autistici.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -56,6 +57,7 @@
|
|||
#:use-module (gnu packages gnome) ;libnotify
|
||||
#:use-module (gnu packages golang)
|
||||
#:use-module (gnu packages golang-build)
|
||||
#:use-module (gnu packages golang-check)
|
||||
#:use-module (gnu packages golang-web)
|
||||
#:use-module (gnu packages golang-xyz)
|
||||
#:use-module (gnu packages image)
|
||||
|
@ -635,6 +637,55 @@ written in Go with pluggable metric collectors.")
|
|||
(deprecated-package "go-github-com-prometheus-node-exporter"
|
||||
prometheus-node-exporter))
|
||||
|
||||
(define-public prometheus-postgres-exporter
|
||||
(package
|
||||
(name "prometheus-postgres-exporter")
|
||||
(version "0.17.1")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/prometheus-community/postgres_exporter")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "13ln3lf1arcpj39dz8syfngqyq1my1gs7qrwcng69gb4lg7wpf8p"))))
|
||||
(build-system go-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:install-source? #f
|
||||
#:import-path "github.com/prometheus-community/postgres_exporter/cmd/postgres_exporter"
|
||||
#:unpack-path "github.com/prometheus-community/postgres_exporter"
|
||||
#:build-flags
|
||||
#~(list (string-append
|
||||
"-ldflags="
|
||||
"-X github.com/prometheus/common/version.Version=" #$version
|
||||
" -X github.com/prometheus/common/version.Revision=0"
|
||||
" -X github.com/prometheus/common/version.Branch=master"
|
||||
" -X github.com/prometheus/common/version.BuildUser=guix"
|
||||
" -X github.com/prometheus/common/version.BuildDate=n/a"))
|
||||
#:embed-files #~(list "landing_page.css" "landing_page.html")
|
||||
;; Step away from cmd/postgres_exporte to test the whole project.
|
||||
#:test-subdirs #~(list "../../...")))
|
||||
(native-inputs
|
||||
(list go-github-com-alecthomas-kingpin-v2
|
||||
go-github-com-blang-semver-v4
|
||||
go-github-com-data-dog-go-sqlmock
|
||||
go-github-com-lib-pq
|
||||
go-github-com-prometheus-client-golang
|
||||
go-github-com-prometheus-client-model
|
||||
go-github-com-prometheus-common
|
||||
go-github-com-prometheus-exporter-toolkit
|
||||
go-github-com-smartystreets-goconvey
|
||||
go-gopkg-in-check-v1
|
||||
go-gopkg-in-yaml-v2
|
||||
go-gopkg-in-yaml-v3))
|
||||
(home-page "https://github.com/prometheus-community/postgres_exporter")
|
||||
(synopsis "PostgreSQL Server Exporter")
|
||||
(description "This package provides a Prometheus exporter for
|
||||
@code{PostgreSQL} server metrics.")
|
||||
(license license:asl2.0)))
|
||||
|
||||
(define-public temper-exporter
|
||||
(let ((commit "a87bbab19c05609d62d9e4c7941178700c1ef84d")
|
||||
(revision "0"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue