Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new spk for activebackup-prometheus-exporter #4292

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions cross/activebackup-prometheus-exporter/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
PKG_NAME = activebackup-prometheus-exporter
PKG_VERS = 1.0.2
PKG_EXT = tar.gz
PKG_DIST_NAME = "v$(PKG_VERS).$(PKG_EXT)"
PKG_DIST_SITE = "https://github.com/codemonauts/$(PKG_NAME)/archive"
PKG_DIST_FILE = "$(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)"
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)


DEPENDS = native/go

HOMEPAGE = https://github.com/codemonauts/activebackup-prometheus-exporter
COMMENT = Prometheus exporter for the ActiveBackup program suite
LICENSE = MIT

COMPILE_TARGET = activebackup_exporter_compile

CGO_ENABLED = 1
GO_BIN_DIR = $(WORK_DIR)/$(PKG_DIR)/$(PKG_NAME)

include ../../mk/spksrc.cross-go.mk


activebackup_exporter_compile:
$(RUN) make build
1 change: 1 addition & 0 deletions cross/activebackup-prometheus-exporter/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin:bin/activebackup-prometheus-exporter
3 changes: 3 additions & 0 deletions cross/activebackup-prometheus-exporter/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
activebackup-prometheus-exporter-1.0.2.tar.gz SHA1 c463274f0b3e4ab62a19b23dfd0d0da03b4c90ec
activebackup-prometheus-exporter-1.0.2.tar.gz SHA256 ffc9d5b49fd8a75cee13cc3a60f1154706a81134048e31aa1ec11d7759789f7e
activebackup-prometheus-exporter-1.0.2.tar.gz MD5 c0022349c2d64907fd61f6ad41b01fd1
21 changes: 21 additions & 0 deletions spk/activebackup-prometheus-exporter/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
SPK_NAME = activebackup-prometheus-exporter
SPK_VERS = 1.0.3
SPK_REV = 3
SPK_ICON =

DEPENDS = cross/$(SPK_NAME)

MAINTAINER = fleaz
DESCRIPTION = Prometheus exporter for backup jobs from the ActiveBackup tool suite
STARTABLE = yes
DISPLAY_NAME = ActiveBackup Prometheus Exporter
CHANGELOG = ""

HOMEPAGE = https://github.com/codemonauts/activebackup-prometheus-exporter
LICENSE = MIT

SERVICE_SETUP = src/service-setup.sh
SERVICE_PORT=9763
SERVICE_PORT_URL="/metrics"

include ../../mk/spksrc.spk.mk
Empty file.
4 changes: 4 additions & 0 deletions spk/activebackup-prometheus-exporter/src/service-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
AB_EXPORTER="${SYNOPKG_PKGDEST}/bin/activebackup-prometheus-exporter"
SERVICE_COMMAND="${AB_EXPORTER} -port ${SERVICE_PORT}"
SVC_BACKGROUND=y
SVC_WRITE_PID=y