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

include error message with exception #399

Merged

Conversation

rustyrazorblade
Copy link
Contributor

When the agent starts up, you get the same output no matter what is wrong:

Usage: -javaagent:/path/to/JavaAgent.jar=[host:]<port>:<yaml configuration file>```

This patch adds the exception to the output:

Usage: -javaagent:/path/to/JavaAgent.jar=[host:]<port>:<yaml configuration file> At most one of hostPort and jmxUrl must be provided

cc @brian-brazil,

@brian-brazil
Copy link
Contributor

Can you rebase against master, and add the DCO?

Signed-off-by: Jon Haddad <jon@jonhaddad.com>
@rustyrazorblade
Copy link
Contributor Author

You got it.

@brian-brazil
Copy link
Contributor

Looks like Travis has broken jdk8 installs, so I'll just merge this.

@brian-brazil brian-brazil merged commit 6f9f74c into prometheus:master Jul 9, 2019
nakyo7 pushed a commit to nakyo7/jmx_exporter that referenced this pull request Jul 18, 2019
…rometheus#399)

Signed-off-by: Jon Haddad <jon@jonhaddad.com>
Signed-off-by: Kiho Na <kiho.na@nhnpayco.com>
qinghui-xu pushed a commit to qinghui-xu/jmx_exporter that referenced this pull request Sep 18, 2020
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.

2 participants