Commit 5b7ff4f3 authored by Matteo Melli's avatar Matteo Melli
Browse files

Set a official default port for prometheus service.

parent 9e9d83aa
......@@ -194,11 +194,11 @@ public class Main {
"Run as a prometheus service (advanced option)")
.availableIf("advanced");
parser.acceptsAll(Lists.newArrayList("prometheus-bind"),
"The bind address of prometheus service (advanced option)")
"The bind address of prometheus service, default is localhost (advanced option)")
.availableIf("advanced")
.withRequiredArg();
parser.acceptsAll(Lists.newArrayList("prometheus-port"),
"The port of prometheus service (advanced option)")
"The port of prometheus service, default is 9544 (advanced option)")
.availableIf("advanced")
.withRequiredArg();
parser.acceptsAll(Lists.newArrayList("ppid"),
......
......@@ -112,7 +112,7 @@ public class Config {
private Optional<Integer> ppid = Optional.empty();
private boolean prometheusService;
private InetAddress prometheusBind;
private int prometheusPort = 8000;
private int prometheusPort = 9544;
private boolean noPrintHeader;
private boolean showSystem;
private boolean showOther;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment