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

No metrics being reported #4

Open
Norbo11 opened this issue Jan 20, 2019 · 2 comments
Open

No metrics being reported #4

Norbo11 opened this issue Jan 20, 2019 · 2 comments

Comments

@Norbo11
Copy link

Norbo11 commented Jan 20, 2019

Hi,

I wanted to try this plugin out, so I've followed your instructions for running it.

I'm running MongoDB v3.4.10, Maven v3.6 and Eclipse v4.10.

Here are the steps I follow in order to see the plugin in action:

  1. mkdir mongodata
  2. mongod --dbpath mongodata
  3. mvn jetty:run (inside cw-feedback-handler)
  4. I register my application with ID MyApp and copy the access token
  5. I hit Enable Feedback Nature for the example application
  6. I then insert that app ID, and the access token, in both the Eclipse plugin configuration for the project as well as the config.properties file inside the application source
  7. I then visit the /example and /users endpoints

I then expected to see some requests being sent against the feedback handler. I don't get anything except the request to monitoring/register during step 4.

How can I make the example application report metrics? Having had a look at the code, I don't see where this even happens - how does the running application know about the feedback-handler server?

Many thanks.

@Norbo11
Copy link
Author

Norbo11 commented Jan 20, 2019

So, I tried running mvn install again inside the cw-feedback-example-application folder and then re-running everything to see if that would make a difference. This time I started seeing "Monitoring: Sending data to feedback handler" messages in the console.

Strangely though, I could not see any logging messages within the feedback handler server. The MongoDB log showed new connections being accepted when I began running more requests against the two endpoints.

To see the runtime information inside the IDE, I had to right click and select "Propagate Feedback". However, I still haven't figured out how to utilise the predictive part of the FDD.

@Norbo11
Copy link
Author

Norbo11 commented Jan 20, 2019

I just changed the sleep from 2000ms per user to 4000ms per user and tried to re-run the whole thing to see if the performance metrics would change. This time, I see nothing being sent to MongoDB, and the plugin still shows the old performance metrics. How exactly does this thing work?

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

No branches or pull requests

1 participant