pg_exporter 0.11.1

PostgreSQL metric exporter for Prometheus
Documentation
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
set -e

# Reload systemd units and enable/start exporter
if command -v systemctl >/dev/null 2>&1; then
    systemctl daemon-reload || true
    systemctl enable pg_exporter.service || true
    systemctl restart pg_exporter.service || true
fi
exit 0