aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control27
-rw-r--r--debian/install1
-rwxr-xr-xdebian/rules12
-rw-r--r--debian/source/format1
6 files changed, 47 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..8e1bb86
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+prometheus-pgbouncer-exporter (1.0) unstable; urgency=low
+
+ * Initial release
+
+ -- Christopher Baines <mail@cbaines.net> Sun, 27 Dec 2015 14:57:54 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..e41fa60
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,27 @@
+Source: prometheus-pgbouncer-exporter
+Section: net
+Priority: optional
+Maintainer: Christopher Baines <mail@cbaines.net>
+Build-Depends: debhelper (>= 9),
+ dh-systemd,
+ dh-python,
+ python3-all,
+ python3-setuptools,
+Standards-Version: 3.9.6
+X-Python3-Version: >= 3.2
+
+Package: prometheus-pgbouncer-exporter
+Architecture: all
+Depends: ${misc:Depends},
+ ${python3:Depends},
+ python3-configargparse,
+ python3-prometheus-client,
+ python3-psycopg2,
+ python3-pkg-resources,
+Description: Export metrics from pgbouncer to Prometheus
+ This is a simple exporter for PgBouncer that makes several metrics available to
+ Prometheus.
+ .
+ Metrics are exported from the SHOW LISTS, STATS, POOLS and DATABASE comand
+ output. For the full list, see the prometheus_pgbouncer_exporter/collectors.py
+ file.
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..819d3d9
--- /dev/null
+++ b/debian/install
@@ -0,0 +1 @@
+prometheus-pgbouncer-exporter.service lib/systemd/system/
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b06eef5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+export DH_VERBOSE=1
+
+%:
+ dh $@ --with=python3,systemd --buildsystem=pybuild
+
+override_dh_systemd_enable:
+ dh_systemd_enable prometheus-pgbouncer-exporter.service
+
+override_dh_systemd_start:
+ dh_systemd_start --restart-after-upgrade prometheus-pgbouncer-exporter.service
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)