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

Display internal metrics on status #477

Merged
merged 10 commits into from
Sep 7, 2023

Conversation

rayz
Copy link
Contributor

@rayz rayz commented Aug 31, 2023

Motivation:

We want to be able to view JMXFetch instance data via the datadog-agent status command.

Implementation:

Add the metrics onto the instanceStats map

New Output:

How it looks when theres a single JMXFetch instance
single-jmxfetch-2

How it looks when there are multiple
two-jmxfetch-2

There does not seem to be an order in the output of the JMXFetch instance keys in status. See jmxfetch.tmpl

I have changes incoming to set the specific order to make the output clear. The screenshots are following this order

Test/Reproduction for above screenshots:

  1. Start up JMXServer(s) i.e misbehavingserver
  2. Build JMXFetch and copy jar to datadog-agent/dev/dist/jmx/jmxfetch.jar
  3. Start datadog agent
  4. Run datadog agent status command

@rayz rayz changed the title draft display internal metrics on status Display internal metrics on status Sep 5, 2023
@rayz rayz marked this pull request as ready for review September 5, 2023 17:08
@rayz rayz requested a review from a team as a code owner September 5, 2023 17:08
@rayz rayz requested a review from a team as a code owner September 6, 2023 14:51
urseberry
urseberry previously approved these changes Sep 6, 2023
@rayz rayz requested a review from urseberry September 7, 2023 13:44
@rayz rayz merged commit d002d62 into master Sep 7, 2023
2 checks passed
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.

3 participants