17 Jun 2019 02:47 PM - last edited on 16 Oct 2023 03:42 PM by random_user
Hi,
By the answer of the following post, I succeeded to create a single dimension of my JMX Plugin.
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
Solved! Go to Solution.
18 Jun 2019 10:03 AM
Hi.
You forgot about defining correct splitting in your source section.
"splitting": {
"name": "name",
"type": "keyProperty",
"keyProperty": "name"
}
Best regards, Cichocki Sebastian