File: 0002-set-default-pgbouncer-pid-file.patch

package info (click to toggle)
prometheus-pgbouncer-exporter 1%3A0.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 248 kB
  • sloc: makefile: 36
file content (17 lines) | stat: -rw-r--r-- 993 bytes parent folder | download | duplicates (2)
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")