From 6ed546207d9330dbc9ac8e953ffb827f9afab671 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Tue, 4 Jun 2024 16:06:36 +0200 Subject: [PATCH] Print --version to stdout, not stderr This get things in line with the Prometheus server. Signed-off-by: beorn7 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index d19fbd8c..1af46cf3 100644 --- a/main.go +++ b/main.go @@ -63,7 +63,7 @@ func (lf logFunc) Println(v ...interface{}) { func main() { var ( - app = kingpin.New(filepath.Base(os.Args[0]), "The Pushgateway") + app = kingpin.New(filepath.Base(os.Args[0]), "The Pushgateway").UsageWriter(os.Stdout) webConfig = webflag.AddFlags(app, ":9091") metricsPath = app.Flag("web.telemetry-path", "Path under which to expose metrics.").Default("/metrics").String() externalURL = app.Flag("web.external-url", "The URL under which the Pushgateway is externally reachable.").Default("").URL()