From e243dc3985de4430b744512214a57687a8712c8c Mon Sep 17 00:00:00 2001 From: "Marcelo E. Magallon" Date: Mon, 13 Jun 2022 18:05:26 -0600 Subject: [PATCH] Print to stdout, not stderr Following the change in https://github.com/prometheus/prometheus/pull/8542 blackbox_exporter will send all usage out to stdout, not stderr. Fixes: #912 Signed-off-by: Marcelo E. Magallon --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 849659e7..bdc73ae0 100644 --- a/main.go +++ b/main.go @@ -244,6 +244,7 @@ func main() { } func run() int { + kingpin.CommandLine.UsageWriter(os.Stdout) promlogConfig := &promlog.Config{} flag.AddFlags(kingpin.CommandLine, promlogConfig) kingpin.Version(version.Print("blackbox_exporter"))