1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: Set default pgbouncer.pid location to the Debian default.
Author: Lena Voytek <lena@voytek.dev>
Forwarded: not-needed
Last-Update: 2025-03-03
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/pgbouncer_exporter.go
+++ b/pgbouncer_exporter.go
@@ -47,7 +47,7 @@
var (
connectionStringPointer = kingpin.Flag("pgBouncer.connectionString", "Connection string for accessing pgBouncer.").Default("postgres://postgres:@localhost:6543/pgbouncer?sslmode=disable").Envar("PGBOUNCER_EXPORTER_CONNECTION_STRING").String()
metricsPath = kingpin.Flag("web.telemetry-path", "Path under which to expose metrics.").Default("/metrics").String()
- pidFilePath = kingpin.Flag("pgBouncer.pid-file", pidFileHelpText).Default("").String()
+ pidFilePath = kingpin.Flag("pgBouncer.pid-file", pidFileHelpText).Default("/run/postgresql/pgbouncer.pid").String()
)
toolkitFlags := kingpinflag.AddFlags(kingpin.CommandLine, ":9127")
|