Package: prometheus-bird-exporter / 1.2.2-1

01-default_settings.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Align defaults with Debian bird package's Unix socket paths
Author: Daniel Swarbrick <daniel.swarbrick@profitbricks.com>
--- a/main.go
+++ b/main.go
@@ -18,7 +18,7 @@
 	showVersion   = flag.Bool("version", false, "Print version information.")
 	listenAddress = flag.String("web.listen-address", ":9324", "Address on which to expose metrics and web interface.")
 	metricsPath   = flag.String("web.telemetry-path", "/metrics", "Path under which to expose metrics.")
-	birdSocket    = flag.String("bird.socket", "/var/run/bird.ctl", "Socket to communicate with bird routing daemon")
+	birdSocket    = flag.String("bird.socket", "/run/bird/bird.ctl", "Socket to communicate with bird routing daemon")
 	birdV2        = flag.Bool("bird.v2", false, "Bird major version >= 2.0 (multi channel protocols)")
 	newFormat     = flag.Bool("format.new", false, "New metric format (more convenient / generic)")
 	enableBgp     = flag.Bool("proto.bgp", true, "Enables metrics for protocol BGP")
@@ -27,7 +27,7 @@
 	enableStatic  = flag.Bool("proto.static", true, "Enables metrics for protocol Static")
 	enableDirect  = flag.Bool("proto.direct", true, "Enables metrics for protocol Direct")
 	// pre bird 2.0
-	bird6Socket  = flag.String("bird.socket6", "/var/run/bird6.ctl", "Socket to communicate with bird6 routing daemon (not compatible with -bird.v2)")
+	bird6Socket  = flag.String("bird.socket6", "/run/bird/bird6.ctl", "Socket to communicate with bird6 routing daemon (not compatible with -bird.v2)")
 	birdEnabled  = flag.Bool("bird.ipv4", true, "Get protocols from bird (not compatible with -bird.v2)")
 	bird6Enabled = flag.Bool("bird.ipv6", true, "Get protocols from bird6 (not compatible with -bird.v2)")
 )