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

Enable SSL, make reporter a daemon thread #118

Closed
wants to merge 4 commits into from

Conversation

elahrvivaz
Copy link

Closes #116

Copy link
Contributor

@asafm asafm left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! Overall looks good. I've left some comments. I would generally think it's best to separate Daemon Thread to a separate PR and issue

src/main/java/io/logz/jmx2graphite/Jmx2Graphite.java Outdated Show resolved Hide resolved
@@ -67,7 +67,7 @@ public void testOnServerRestart() throws InterruptedException {
int connectTimeout = 1000;
int socketTimeout = 1000;
GraphiteClient client = new GraphiteClient("bla-host.com", "bla-service", "localhost",
port, connectTimeout, socketTimeout, 20000,
port, false, connectTimeout, socketTimeout, 20000,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please add an integration test to see that the functionality works?

Copy link
Author

Choose a reason for hiding this comment

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

Ah, sorry, setting up an ssl-enabled graphite is fairly complicated, and doing it in an integration test more so, and I don't have the time right now to get it working. I understand if you don't want to merge without a test though. Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

@elahrvivaz Even if you use testcontainers? If you already did once for manual testing, it's only a matter of writing the configuration file for Graphite no?

Copy link
Author

Choose a reason for hiding this comment

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

ah, well I didn't set up the instance I've been testing on, and I'm not familiar with testcontainers :(

Copy link
Contributor

Choose a reason for hiding this comment

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

@elahrvivaz Testcontainers is fairly easy to work with. You have a great example at GraphiteITest. Take a few minutes to review it - I'll happy to assist with any questions you may have.

@github-actions
Copy link

github-actions bot commented Feb 27, 2022

Unit Test Results

2 files  2 suites   10s ⏱️
3 tests 3 ✔️ 0 💤 0

Results for commit e2bb461.

♻️ This comment has been updated with latest results.

@asafm
Copy link
Contributor

asafm commented Sep 16, 2022

@elahrvivaz Would you like to continue on this?

@elahrvivaz
Copy link
Author

I'll close it for now, if someone else wants to pick it up feel free!

@elahrvivaz elahrvivaz closed this Sep 16, 2022
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.

Support TLS Graphite endpoints
2 participants