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

Add ksql-tools #634

Merged
merged 2 commits into from
Jan 17, 2018
Merged

Add ksql-tools #634

merged 2 commits into from
Jan 17, 2018

Conversation

rodesai
Copy link
Contributor

@rodesai rodesai commented Jan 16, 2018

Add a module for ksql command line tools. Include a tool for
printing ksql metrics exposed as mbeans.

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()) {
Copy link
Contributor

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, js commonly used for index variables.

+ "pid=<KSQL PID>");
}

public static class PrintMetricsException extends RuntimeException {
Copy link
Contributor

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?

@hjafarpour
Copy link
Contributor

Would you like to add a shell script in https://github.com/confluentinc/ksql/tree/master/bin to run this?

Copy link

@bluemonk3y bluemonk3y left a 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);

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

Copy link
Contributor Author

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.

Copy link
Contributor

@apurvam apurvam left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@rodesai rodesai merged commit 4fa0079 into master Jan 17, 2018
@rodesai rodesai deleted the ksql-tools branch March 6, 2018 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants