cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

JMX Plugin: Can we set multiple dimensions?

nkobayashi1
Helper

Hi,

By the answer of the following post, I succeeded to create a single dimension of my JMX Plugin.

https://community.dynatrace.com/spaces/482/dynatrace-open-qa/questions/223462/dimensions-for-jmx-plu...


But we need to create multiple dimensions for some metrics.
Could you tell me how to set multiple dimensions?

I've read the document, and I believe that we can set multiple dimensions for one timeseriesId.
https://github.com/Dynatrace/JMX-Extensions

But the following code has not worked.

{
  "version": "1.1560777341",
  "name": "custom.jmx.CreatedPlugin_SuperJMXPlugin1560777341463",
  "type": "JMX",
  "processTypes": [
    10,
    12,
    13,
    16,
    17,
    18
  ],
  "entity": "PROCESS_GROUP_INSTANCE",
  "configUI": {
    "displayName": "SuperJMXPlugin"
  },
  "ui": {
    "charts": [
      {
        "group": "SuperJMXPlugin metrics",
        "title": "OpenSessionsCurrentCount",
        "series": [
          {
            "key": "metric_OpenSessionsCurrentCount_1560777339262",
            "aggregation": "avg",
            "displayname": "OpenSessionsCurrentCount"
          }
        ]
      }
    ]
  },
  "metrics": [
    {
      "timeseries": {
        "key": "metric_OpenSessionsCurrentCount_1560777339262",
        "unit": "Count",
        "displayname": "OpenSessionsCurrentCount",
        "dimensions": [
          "rx_pid",
          "ApplicationRuntime"
        ]
      },
      "source": {
        "domain": "com.bea",
        "keyProperties": {
          "Type": "WebAppComponentRuntime",
          "ApplicationRuntime": "*",
          "Name": "*",
          "ServerRuntime": "*"
        },
        "attribute": "OpenSessionsCurrentCount",
        "allowAdditionalKeys": true,
        "calculateDelta": false,
        "calculateRate": false,
        "aggregation": "AVG"
      }
    }
  ]
}

Thanks,
Noah Kobayashi


1 REPLY 1

sebastian_cicho
Inactive

Hi.

You forgot about defining correct splitting in your source section.

"splitting": {
"name": "name",
"type": "keyProperty",     
"keyProperty": "name"
}

Best regards, Cichocki Sebastian


Featured Posts