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

How to configure YAML for nested javax.management.openmbean.CompositeData type? #129

Open
KParzival opened this issue Mar 1, 2017 · 2 comments
Milestone

Comments

@KParzival
Copy link

Migrating a bunch of hosts from current monitoring solution to Datadog, hit a snag when trying to format YAML for a nested CompositeData.

Example output from JTerm:

$>get LastSuccessfulRun
#mbean = mybean:type=test:
LastSuccessfulRun = {
  elapsedTime = 220;
  mapOutputRuntime = {
    records = 37901;
    runtime = 23463;
   };
  cellStats = {
    TypeFilter = {
      Data loader runtime (ms) = -1;
      Filter runtime (ms) = -1;
     };
    allDataLoadersRuntime = 6611;
    allFiltersRuntime = 83921;
   };
  domainLoadRuntimes = {
    ( APPLY_SETS ) = {
      name = APPLY_SETS;
      records = 11923;
      runtime = 12;
     };
    ( RIGHT_SITE ) = {
      name = RIGHT_SITE;
      records = 1612;
      runtime = 25;
     };
   };
 };

Several different layers represented in this snippet, the only thing here I have been successfully able to capture is elapsedTime = 220; This was done successfully using the formatting demonstrated here: https://github.com/DataDog/jmxfetch/blob/master/src/main/resources/jmx-2.yaml#L3-L14

I tried adding another period (.) separator for the nested scenarios as shown below (as well as a few other variations), but it didn't seem to work. Any advice would be appreciated, thanks.

    conf:
      - 
        include: 
          attribute:
            LastSuccessfulRun.mapOutputRuntime.records:
              alias: test.LastSuccessfulRune_mapOutputRuntime_records
              metric_type: gauge 
@yannmh
Copy link
Member

yannmh commented Mar 2, 2017

@KParzival, I just had a look and found out that JMXFetch does not play well with nested CompositeData types.
I am adding the issue to our 0.14.0 milestone so we can get it fix for the next release.

@yannmh yannmh added this to the 0.14.0 milestone Mar 2, 2017
@olivielpeau olivielpeau modified the milestones: Triage, 0.14.0 Aug 21, 2017
@KarlManong
Copy link

any solution?

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

No branches or pull requests

4 participants