feat: adding additional exporters
Build / build-9 (pull_request) Successful in 1m36s
Build / build-8 (pull_request) Successful in 1m50s

- postgres_exporter
- pgbouncer_exporter
- bind_exporter
This commit is contained in:
2025-07-27 11:42:13 +10:00
parent b38856fb57
commit 8e56419539
12 changed files with 183 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
#!/usr/bin/bash
nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm
@@ -0,0 +1,37 @@
# nfpm.yaml
name: postgres_exporter
version: ${PACKAGE_VERSION}
release: ${PACKAGE_RELEASE}
arch: amd64
platform: linux
section: default
priority: extra
description: "A PostgreSQL metric exporter for Prometheus"
maintainer: Prometheus
homepage: https://github.com/prometheus-community/postgres_exporter
license: Apache-2.0 license
disable_globbing: false
replaces:
- postgres_exporter
provides:
- postgres_exporter
# Files to include in the package
contents:
- src: /app/postgres_exporter
dst: /usr/bin/postgres_exporter
file_info:
mode: 0755
owner: root
group: root
# Scripts to run during installation/removal (optional)
# scripts:
# preinstall: ./scripts/preinstall.sh
# postinstall: ./scripts/postinstall.sh
# preremove: ./scripts/preremove.sh
# postremove: ./scripts/postremove.sh