mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-21 08:42:23 +00:00
New port: databases/prometheus-postgresql-adapter
Use PostgreSQL as a remote storage database for Prometheus WWW: https://github.com/timescale/prometheus-postgresql-adapter PR: 245180 Submitted by: Felix Hanley <felix@userspace.com.au>
This commit is contained in:
parent
4c8a1db1eb
commit
d5709a4cb0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=533251
@ -730,6 +730,7 @@
|
||||
SUBDIR += proftpd-mod_sql_postgres
|
||||
SUBDIR += proftpd-mod_sql_sqlite
|
||||
SUBDIR += proftpd-mod_sql_tds
|
||||
SUBDIR += prometheus-postgresql-adapter
|
||||
SUBDIR += pspg
|
||||
SUBDIR += puppetdb-terminus5
|
||||
SUBDIR += puppetdb-terminus6
|
||||
|
51
databases/prometheus-postgresql-adapter/Makefile
Normal file
51
databases/prometheus-postgresql-adapter/Makefile
Normal file
@ -0,0 +1,51 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= prometheus-postgresql-adapter
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.6.0
|
||||
CATEGORIES= databases
|
||||
|
||||
MAINTAINER= felix@userspace.com.au
|
||||
COMMENT= Use PostgreSQL as a remote storage database for Prometheus
|
||||
|
||||
LICENSE= APACHE20
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USES= go:modules
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= timescale
|
||||
GH_TUPLE= \
|
||||
beorn7:perks:v1.0.0:beorn7_perks/vendor/github.com/beorn7/perks \
|
||||
go-kit:kit:v0.9.0:go_kit_kit/vendor/github.com/go-kit/kit \
|
||||
go-logfmt:logfmt:v0.4.0:go_logfmt_logfmt/vendor/github.com/go-logfmt/logfmt \
|
||||
gogo:protobuf:v1.2.1:gogo_protobuf/vendor/github.com/gogo/protobuf \
|
||||
golang:net:d28f0bde5980:golang_net/vendor/golang.org/x/net \
|
||||
golang:protobuf:v1.3.2:golang_protobuf/vendor/github.com/golang/protobuf \
|
||||
golang:snappy:v0.0.1:golang_snappy/vendor/github.com/golang/snappy \
|
||||
golang:sys:81d4e9dc473e:golang_sys/vendor/golang.org/x/sys \
|
||||
golang:text:cb6730876b98:golang_text/vendor/golang.org/x/text \
|
||||
google:go-genproto:c506a9f90610:google_go_genproto/vendor/google.golang.org/genproto \
|
||||
grpc-ecosystem:grpc-gateway:v1.9.5:grpc_ecosystem_grpc_gateway/vendor/github.com/grpc-ecosystem/grpc-gateway \
|
||||
grpc:grpc-go:v1.22.1:grpc_grpc_go/vendor/google.golang.org/grpc \
|
||||
inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \
|
||||
jamiealquiza:envy:v1.1.0:jamiealquiza_envy/vendor/github.com/jamiealquiza/envy \
|
||||
kr:logfmt:b84e30acd515:kr_logfmt/vendor/github.com/kr/logfmt \
|
||||
lib:pq:v1.2.0:lib_pq/vendor/github.com/lib/pq \
|
||||
matttproud:golang_protobuf_extensions:v1.0.1:matttproud_golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \
|
||||
pkg:errors:v0.8.1:pkg_errors/vendor/github.com/pkg/errors \
|
||||
prometheus:client_golang:v1.0.0:prometheus_client_golang/vendor/github.com/prometheus/client_golang \
|
||||
prometheus:client_model:fd36f4220a90:prometheus_client_model/vendor/github.com/prometheus/client_model \
|
||||
prometheus:common:v0.6.0:prometheus_common/vendor/github.com/prometheus/common \
|
||||
prometheus:procfs:v0.0.3:prometheus_procfs/vendor/github.com/prometheus/procfs \
|
||||
prometheus:prometheus:e5b22494857d:prometheus_prometheus/vendor/github.com/prometheus/prometheus \
|
||||
spf13:cobra:v0.0.5:spf13_cobra/vendor/github.com/spf13/cobra \
|
||||
spf13:pflag:v1.0.3:spf13_pflag/vendor/github.com/spf13/pflag
|
||||
|
||||
USE_RC_SUBR= prometheus-postgresql-adapter
|
||||
|
||||
GO_TARGET= ./cmd/${PORTNAME}
|
||||
GO_BUILDFLAGS= -ldflags="-w" ${BUILD_TAGS}
|
||||
|
||||
PLIST_FILES= bin/prometheus-postgresql-adapter
|
||||
|
||||
.include <bsd.port.mk>
|
53
databases/prometheus-postgresql-adapter/distinfo
Normal file
53
databases/prometheus-postgresql-adapter/distinfo
Normal file
@ -0,0 +1,53 @@
|
||||
TIMESTAMP = 1585550634
|
||||
SHA256 (timescale-prometheus-postgresql-adapter-v0.6.0_GH0.tar.gz) = de65e2acb29764634088a5fd83a97b7f18895c319766d954e0006b400c0b3a52
|
||||
SIZE (timescale-prometheus-postgresql-adapter-v0.6.0_GH0.tar.gz) = 40069
|
||||
SHA256 (beorn7-perks-v1.0.0_GH0.tar.gz) = b69d92e2e84b7d510dfa6110d3ac4ada0096a6c81190c5e174aa888bfe475cbc
|
||||
SIZE (beorn7-perks-v1.0.0_GH0.tar.gz) = 10866
|
||||
SHA256 (go-kit-kit-v0.9.0_GH0.tar.gz) = 41e92e4f5a6111e6f88bec9b46ca41d6eb9167dc2231813616bdf365e641be44
|
||||
SIZE (go-kit-kit-v0.9.0_GH0.tar.gz) = 251842
|
||||
SHA256 (go-logfmt-logfmt-v0.4.0_GH0.tar.gz) = eddccc7c8d39a6381f7152e73ebf3c725de317c5b984d8a77282e63915aa834d
|
||||
SIZE (go-logfmt-logfmt-v0.4.0_GH0.tar.gz) = 12724
|
||||
SHA256 (gogo-protobuf-v1.2.1_GH0.tar.gz) = 99e423905ba8921e86817607a5294ffeedb66fdd4a85efce5eb2848f715fdb3a
|
||||
SIZE (gogo-protobuf-v1.2.1_GH0.tar.gz) = 2017393
|
||||
SHA256 (golang-net-d28f0bde5980_GH0.tar.gz) = 40f4d37b315f4a6867ab5beadf4d73f93b9c1d777b48ec66d59f953a4a19acb4
|
||||
SIZE (golang-net-d28f0bde5980_GH0.tar.gz) = 1097062
|
||||
SHA256 (golang-protobuf-v1.3.2_GH0.tar.gz) = c9cda622857a17cf0877c5ba76688a931883e505f40744c9495638b6e3da1f65
|
||||
SIZE (golang-protobuf-v1.3.2_GH0.tar.gz) = 312285
|
||||
SHA256 (golang-snappy-v0.0.1_GH0.tar.gz) = b1d97f47fcb61cb0cdd54bc424eda980c47838effb0ec9e322506514a50fee85
|
||||
SIZE (golang-snappy-v0.0.1_GH0.tar.gz) = 62605
|
||||
SHA256 (golang-sys-81d4e9dc473e_GH0.tar.gz) = aa08c54a67a5fec8c3fdbe799a1d6d53b3d43736f94c5f5001827931c3619788
|
||||
SIZE (golang-sys-81d4e9dc473e_GH0.tar.gz) = 1260782
|
||||
SHA256 (golang-text-cb6730876b98_GH0.tar.gz) = 1e313b4fa32b696b0cb542130dfe154ddc81e6c10e53f1efef0395fb6450745f
|
||||
SIZE (golang-text-cb6730876b98_GH0.tar.gz) = 6567874
|
||||
SHA256 (google-go-genproto-c506a9f90610_GH0.tar.gz) = f855ebe5e7cccbfa47c061cb560d4202c9b5af4b6e2fc9b1e4379ba579813647
|
||||
SIZE (google-go-genproto-c506a9f90610_GH0.tar.gz) = 5248364
|
||||
SHA256 (grpc-ecosystem-grpc-gateway-v1.9.5_GH0.tar.gz) = 2e38be4cd2801c1ff8ed87b8310437d9d289460ea102ad75ea37e3793af62151
|
||||
SIZE (grpc-ecosystem-grpc-gateway-v1.9.5_GH0.tar.gz) = 303385
|
||||
SHA256 (grpc-grpc-go-v1.22.1_GH0.tar.gz) = 6370b4e1d19ea557e50e08648da581b6f0bf29c2eb8ae90a0748e7685a8f8a2f
|
||||
SIZE (grpc-grpc-go-v1.22.1_GH0.tar.gz) = 742592
|
||||
SHA256 (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 5edc7731c819c305623568e317aa253d342be3447def97f1fa9e10eb5ad819f6
|
||||
SIZE (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 2290
|
||||
SHA256 (jamiealquiza-envy-v1.1.0_GH0.tar.gz) = feb0ca98b78a1f7ed52ff96277190ec5b3a639688adca3bedb5bc9afa6d784e1
|
||||
SIZE (jamiealquiza-envy-v1.1.0_GH0.tar.gz) = 4068
|
||||
SHA256 (kr-logfmt-b84e30acd515_GH0.tar.gz) = bf056ba7960b6846f2aa2c6ec0a217ead3e7259bc6c537f9f3ba3af6eb82cb80
|
||||
SIZE (kr-logfmt-b84e30acd515_GH0.tar.gz) = 6411
|
||||
SHA256 (lib-pq-v1.2.0_GH0.tar.gz) = 052e9ce4472eda212e5034fd0298fcf254c22925b1d596b1d043a7a60fe4672e
|
||||
SIZE (lib-pq-v1.2.0_GH0.tar.gz) = 96083
|
||||
SHA256 (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 2def0ee6f6b12b1efc0e3007d89f598608a072610e805c3655ea9d13c3ead49b
|
||||
SIZE (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 37184
|
||||
SHA256 (pkg-errors-v0.8.1_GH0.tar.gz) = 7a428967c6fc2e80cd84a0d9469ab6bd4dbe6b13493ba6294322a933a5a7e356
|
||||
SIZE (pkg-errors-v0.8.1_GH0.tar.gz) = 11009
|
||||
SHA256 (prometheus-client_golang-v1.0.0_GH0.tar.gz) = afee7b61a77342cc24ea55e284d08688267efca1843e529a51799fe52c5ee662
|
||||
SIZE (prometheus-client_golang-v1.0.0_GH0.tar.gz) = 138046
|
||||
SHA256 (prometheus-client_model-fd36f4220a90_GH0.tar.gz) = 17571c708bab9a1ba18d9dd0c9bfe96dff3f1b84c63e7d8d4c3489ef5c34ee40
|
||||
SIZE (prometheus-client_model-fd36f4220a90_GH0.tar.gz) = 57491
|
||||
SHA256 (prometheus-common-v0.6.0_GH0.tar.gz) = 3b58d10c44520d8fd3817b45599a6229123ccf8967db528063143266405b7c4f
|
||||
SIZE (prometheus-common-v0.6.0_GH0.tar.gz) = 99696
|
||||
SHA256 (prometheus-procfs-v0.0.3_GH0.tar.gz) = 3af9b805166932b771dfa19a4c94eb83ceefd2eb54d1a314c3bf15a5f3154d0d
|
||||
SIZE (prometheus-procfs-v0.0.3_GH0.tar.gz) = 91880
|
||||
SHA256 (prometheus-prometheus-e5b22494857d_GH0.tar.gz) = c913d609658657520508087b77a981eb9ff02a69e0a43b1d38acbfa972a835de
|
||||
SIZE (prometheus-prometheus-e5b22494857d_GH0.tar.gz) = 12131713
|
||||
SHA256 (spf13-cobra-v0.0.5_GH0.tar.gz) = 79226ce00e2b91306277e679d024eea6d17d0c02fc671555fd25df0c3ea07423
|
||||
SIZE (spf13-cobra-v0.0.5_GH0.tar.gz) = 111126
|
||||
SHA256 (spf13-pflag-v1.0.3_GH0.tar.gz) = 9e57f86f493f04d9077fccd04e7139ebf243dd544e917ab83d35729b3e54a124
|
||||
SIZE (spf13-pflag-v1.0.3_GH0.tar.gz) = 46002
|
@ -0,0 +1,45 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: prometheus_postgresql_adapter
|
||||
# REQUIRE: DAEMON NETWORKING
|
||||
# BEFORE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
#
|
||||
# prometheus_postgresql_adapter_enable (bool): Set to NO by default.
|
||||
# Set it to YES to enable adapter.
|
||||
# prometheus_postgresql_adapter_flags (string): Set to "" by default.
|
||||
#
|
||||
# prometheus_postgresql_adapter_facility (str): Syslog facility to use
|
||||
# Default: daemon
|
||||
# prometheus_postgresql_adapter_priority (str): Syslog priority to use
|
||||
# Default: info
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name=prometheus_postgresql_adapter
|
||||
rcvar=prometheus_postgresql_adapter_enable
|
||||
load_rc_config $name
|
||||
|
||||
prometheus_postgresql_adapter_flags=${prometheus_postgresql_adapter_flags:-"-log-level warn"}
|
||||
: ${prometheus_postgresql_adapter_enable:=NO}
|
||||
: ${prometheus_postgresql_adapter_facility:=daemon}
|
||||
: ${prometheus_postgresql_adapter_priority:=info}
|
||||
|
||||
# daemon
|
||||
procname="%%PREFIX%%/bin/prometheus-postgresql-adapter"
|
||||
command=/usr/sbin/daemon
|
||||
pidfile="/var/run/${name}.pid"
|
||||
start_cmd="prometheus_postgresql_adapter_startcmd"
|
||||
|
||||
prometheus_postgresql_adapter_startcmd()
|
||||
{
|
||||
echo "Starting ${name}."
|
||||
/usr/sbin/daemon -c -p ${pidfile} /bin/sh -c "${procname} ${prometheus_postgresql_adapter_flags} 2>&1 \
|
||||
| /usr/bin/logger -t ${name} -p ${prometheus_postgresql_adapter_facility}.${prometheus_postgresql_adapter_priority}"
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
3
databases/prometheus-postgresql-adapter/pkg-descr
Normal file
3
databases/prometheus-postgresql-adapter/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
Use PostgreSQL as a remote storage database for Prometheus
|
||||
|
||||
WWW: https://github.com/timescale/prometheus-postgresql-adapter
|
Loading…
Reference in New Issue
Block a user