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

Config option refresh_beans_initial not documented in either init_config or instance templates #483

Open
pdpol opened this issue Oct 6, 2023 · 2 comments

Comments

@pdpol
Copy link

pdpol commented Oct 6, 2023

After running into the issue documented in #292 I experimented with setting the refresh_beans_initial option to various values in the init_config section of our JMXfetch yaml, but have seen no evidence that the setting has done anything. The first time I see any output in logs relevant is exactly 10 minutes after the agent starts, when we see

2023-10-06 14:20:28 UTC | JMX | INFO | Instance | Refreshing bean list

due to the normal refresh_beans interval of 10 minutes.

Before claiming that the setting is not working to me I wanted to confirm whether or not it is actually supported in the init_config section, and thought it might be in the template linked here but was unable to find it.

Datadog agent version is 7.47.1.

@carlosroman
Copy link
Contributor

refresh_beans should be set in the instances section of the config. The value used comes from the instanceMap. An example of it being used can be seen here.

@pdpol
Copy link
Author

pdpol commented Oct 9, 2023

Thank you @carlosroman! I'm about to test this out now but it sounds like that's probably going to fix this for me. For what it's worth, the docs on the JMX configuration direct the reader to the template for "all available configuration options" but at least these two settings are absent, which led to my confusion.

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

2 participants