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

Adds a configurable period for the 1st bean refresh #349

Merged
merged 9 commits into from
Jan 23, 2021

Conversation

ian28223
Copy link
Contributor

What this PR does

Adds a configurable period for the 1st bean refresh.

Additional info

  • Configurable via refresh_beans_initial - time in seconds for jmxfetch to wait to refresh the beans for the first time.
  • Succeeding bean refresh still adheres to refresh_beans parameter.
  • Setting a value greater than the refresh_beans will default to a value equal to refresh_beans.

Motivation

  • AC-737
  • Useful for Java applications that are lazy loaded and may take some time after application startup before actually being exposed.

Configurable parameter that determines the amount in seconds before performing the 1st bean refresh. Succeeding bean refresh controlled by "refresh_beans"
Decided on a default of 2m30s
Copy link
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

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

Just a couple of comments, also, I'm not sure if we currently have a unit test to cover the refresh beans logic, but it would be nice to have otherwise.

Note that tests appear to be failing.

src/main/java/org/datadog/jmxfetch/Instance.java Outdated Show resolved Hide resolved
@ian28223 ian28223 added the wip label Jan 22, 2021
@ian28223
Copy link
Contributor Author

Just a couple of comments, also, I'm not sure if we currently have a unit test to cover the refresh beans logic, but it would be nice to have otherwise.

I'd work on the unit test either here (if it doesn't make it before freeze).. or in another PR

@truthbk truthbk removed the wip label Jan 23, 2021
@truthbk truthbk merged commit 0f9f88a into master Jan 23, 2021
@truthbk truthbk deleted the ian.bucad/jmxfetch_init_refresh_beans branch January 23, 2021 19:10
@truthbk truthbk added this to the 0.42.0 milestone Jan 24, 2021
@tylerbenson
Copy link
Contributor

I think this resolves #292.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants