Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
OnGres Inc.
pgio
Commits
5b7ff4f3
Commit
5b7ff4f3
authored
Feb 12, 2019
by
Matteo Melli
Browse files
Set a official default port for prometheus service.
parent
9e9d83aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
main/src/main/java/com/ongres/pgio/main/Main.java
View file @
5b7ff4f3
...
...
@@ -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"
),
...
...
main/src/main/java/com/ongres/pgio/main/config/Config.java
View file @
5b7ff4f3
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment