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
55ce79bf
Commit
55ce79bf
authored
Aug 23, 2018
by
Matteo Melli
Browse files
Update README.md and some parameter's descriptions
parent
bc83e983
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
55ce79bf
...
...
@@ -83,7 +83,7 @@ mvn clean package -P executable
This will generate output with collected stats of all processes (should be run as root) every 3 seconds:
```
bin/pgio
bin/pgio
-D <postgresql data dir>
```
## Options
...
...
@@ -91,17 +91,23 @@ bin/pgio
```
Option Description
------ -----------
-D <String> Specifies the file system location of the database
configuration files. If this is omitted, the
environment variable PGDATA is used.
-a, --advanced Enable advanced options
-d, --debug Show debug messages
-g, --group <String> Group results using specified group configuration file
(advanced option)
-h, --help Displays this help message and quit
-i, --interval <String> Interval in milliseconds to gather stats (default:
3000)
--no-print-header Suppress print of CSV header
-o, --show-other Print read/write data not accounted by any listed
process
--ppid <String> Parent pid of the process to scan (if not specified
will scan all processes)
--print-header Print header
--ppid <String> Parent pid of the process to scan (advanced option)
--prometheus-format Print output in prometheus format
-s, --show-system Print read/write data for the whole system
-v, --version Show version and quit
-v, --version Show version and quit
```
### Group configuration file
...
...
main/src/main/java/com/ongres/pgio/main/Main.java
View file @
55ce79bf
...
...
@@ -131,16 +131,12 @@ public class Main {
"Enable advanced options"
);
parser
.
acceptsAll
(
Lists
.
newArrayList
(
"prometheus-format"
),
"Print output in prometheus format"
);
parser
.
acceptsAll
(
Lists
.
newArrayList
(
"all-processes"
),
"Enable advanced options"
)
.
availableIf
(
"advanced"
);
parser
.
acceptsAll
(
Lists
.
newArrayList
(
"ppid"
),
"Parent pid of the process to scan"
+
" (if not specified will collect stats from all processes)"
)
"Parent pid of the process to scan (advanced option)"
)
.
availableIf
(
"advanced"
)
.
withRequiredArg
();
parser
.
acceptsAll
(
Lists
.
newArrayList
(
"g"
,
"group"
),
"Group results using specified group configuration file"
)
"Group results using specified group configuration file
(advanced option)
"
)
.
availableIf
(
"advanced"
)
.
withRequiredArg
();
return
parser
;
...
...
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