Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More informative help output for print-metrics #671

Merged
merged 2 commits into from
Jan 30, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix style check
  • Loading branch information
rodesai committed Jan 30, 2018
commit 860e4d6c2e01673341ef11f28ae1763fc73168eb
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,20 @@ public static void printHelp() {
"\n" +
"This utility prints the following operational metrics tracked by ksql:\n" +
"\n" +
"messages-consumed-per-sec: Messages consumed per seconds across all queries\n" +
"messages-consumed-avg: The average number of messages consumed by a query per second\n" +
"messages-consumed-min: Messages consumed per second for the query with the fewest messages consumed per second\n" +
"messages-consumed-max: Messages consumed per second for the query with the most messages consumed per second\n" +
"messages-consumed-per-sec: Messages consumed per second across all queries\n" +
"messages-consumed-avg: The average number of messages consumed by a query " +
"per second\n" +
"messages-consumed-min: Messages consumed per second for the query with the " +
"fewest messages consumed per second\n" +
"messages-consumed-max: Messages consumed per second for the query with the " +
"most messages consumed per second\n" +
"messages-produced-per-sec: Messages produced per second across all queries\n" +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a dup of line 44?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consumed vs produced

"error-rate: The number of messages which were consumed but not processed\n" +
"error-rate: The number of messages which were consumed but not " +
" processed across all queries\n" +
"num-persistent-queries: The number of queries currently executing.\n" +
"num-active-queries: The number of queries actively processing messages.\n" +
"num-idle-queries: The number of queries with no messages available to process.");
"num-idle-queries: The number of queries with no messages available to " +
"process.");
}

private static void printMetrics(int pid) throws IOException {
Expand Down