-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add ksql-tools #634
Add ksql-tools #634
Conversation
Add a module for ksql command line tools. Include a tool for printing ksql metrics exposed as mbeans.
Map<Integer, LocalVirtualMachine> jvms = LocalVirtualMachine.getAllVirtualMachines(); | ||
LocalVirtualMachine jvm = null; | ||
if (pid == -1) { | ||
for (LocalVirtualMachine j : jvms.values()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd propose to use the different variable name here. i, j
s commonly used for index variables.
+ "pid=<KSQL PID>"); | ||
} | ||
|
||
public static class PrintMetricsException extends RuntimeException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you think about having PrintMetricsException
and ArgumentMetricsException
in separate exception package?
Would you like to add a shell script in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
} catch (Exception error) { | ||
throw new PrintMetricsException("Unexpected error getting attribute " + error.getMessage()); | ||
} | ||
System.out.println(attributeInfo.getName() + ": " + attribute); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at some point we might want to provide a formatter so data could displayed as CSV, JSON, statsd or delimited - the output could then be sent to a remote REST EP
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed this. I'll file an issue so we don't lose track of it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Add a module for ksql command line tools. Include a tool for
printing ksql metrics exposed as mbeans.