projects
/
blackbox_exporter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66290d6
)
Print to stdout, not stderr (#928)
author
Marcelo Magallon
<marcelo.magallon@grafana.com>
Sat, 18 Jun 2022 12:55:10 +0000
(06:55 -0600)
committer
GitHub
<noreply@github.com>
Sat, 18 Jun 2022 12:55:10 +0000
(06:55 -0600)
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 <marcelo.magallon@grafana.com>
main.go
patch
|
blob
|
blame
|
history
diff --git
a/main.go
b/main.go
index 849659e7b605dbb65ab011e12be2e621aef49bd6..bdc73ae066304f4a5bf5db63f1e9805f3ad37614 100644
(file)
--- 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"))