From 17923cc061ffcbb73009d8d00a8bec2d9823974b Mon Sep 17 00:00:00 2001 From: Conrad Hoffmann Date: Mon, 21 Feb 2022 20:50:36 +0100 Subject: [PATCH] Make kingping write to stdout The pros and cons are debatable, but this brings IPMI exporter in line with most of the other Prometheus tools, so hooray for consistency. Fixes #97 --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index d8303ff..77c5b86 100644 --- a/main.go +++ b/main.go @@ -96,6 +96,7 @@ func updateConfiguration(w http.ResponseWriter, r *http.Request) { func main() { promlogConfig := &promlog.Config{} flag.AddFlags(kingpin.CommandLine, promlogConfig) + kingpin.CommandLine.UsageWriter(os.Stdout) kingpin.HelpFlag.Short('h') kingpin.Version(version.Print("ipmi_exporter")) kingpin.Parse()