14 Feb 2023
04:57 PM
- last edited on
12 May 2023
10:58 AM
by
Michal_Gebacki
Hello Folks,
I wanted to update the PMI extension to change the aggregation of some of the metrics, which I could do easily by changing aggregation. However, what are the other things I need to update in json besides version?
Because, I can see some numbers attached to each metric key.
For e.g.- key has ActiveCount.metric_<extension-version><some-random-number>
JSON snippet,
"ui": {
"charts": [
{
"group": "WebApplicationSever_ThreadPool metrics",
"title": "Active_Count",
"series": [
{
"key": "ActiveCount.metric_1.1331234567",
"aggregation": "avg",
"displayname": "Active_Count"
}
]
},
Can someone please guide, from where to get that random numbers for each metric key?
Regards,
AK
Solved! Go to Solution.
15 Feb 2023 12:11 PM
Can someone please help here.
Regards,
AK
16 Feb 2023 06:23 AM
Am I really doing it wrongly or nobody tried this approach?
Can someone please throw some light on this topic.
Regards,
AK
16 Feb 2023 06:49 PM
Those random numbers are only there because it was created using the JMX plugin creator in the UI, it uses those to make sure keys are unique in extensions created through the wizard. If you were to make this manually, you wouldn't need to use anything like that.
The metric keys should be consistent across versions.
17 Feb 2023 10:40 AM
@JamesKitson, Thanks for the response. So, uploading new version I shall make it like below. Please correct me.
"ui": {
"charts": [
{
"group": "WebApplicationSever_ThreadPool metrics",
"title": "Active_Count",
"series": [
{
"key": "ActiveCount.metric",
"aggregation": "avg",
"displayname": "Active_Count"
}
]
},
Regards,
AK