Skip to content

Commit

Permalink
Print --version to stdout, not stderr
Browse files Browse the repository at this point in the history
This get things in line with the Prometheus server.

Signed-off-by: beorn7 <[email protected]>
  • Loading branch information
beorn7 committed Jun 4, 2024
1 parent 645ec4b commit 6ed5462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6ed5462

Please sign in to comment.