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

Upload new version of JMX/PMI extension

AK
Pro

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

4 REPLIES 4

AK
Pro

Can someone please help here.

Regards,

AK

AK
Pro

Am I really doing it wrongly or nobody tried this approach? 

Can someone please throw some light on this topic.

Regards,

AK

JamesKitson
Dynatrace Guru
Dynatrace Guru

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.

@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

Featured Posts