aboutsummaryrefslogtreecommitdiff
path: root/prometheus-pgbouncer-exporter.service
diff options
context:
space:
mode:
Diffstat (limited to 'prometheus-pgbouncer-exporter.service')
-rw-r--r--prometheus-pgbouncer-exporter.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/prometheus-pgbouncer-exporter.service b/prometheus-pgbouncer-exporter.service
new file mode 100644
index 0000000..e6269af
--- /dev/null
+++ b/prometheus-pgbouncer-exporter.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Expose data from pgbouncer for collection by Prometheus
+Requires=pgbouncer.service
+After=pgbouncer.service
+
+[Service]
+User=postgres
+ExecStart=/usr/bin/prometheus-pgbouncer-exporter
+
+[Install]
+WantedBy=multi-user.target