# Upload new version of JMX/PMI extension

**URL:** <https://community.dynatrace.com/t/upload-new-version-of-jmx-pmi-extension/38442>\
**Category:** Extensions\
**Tags:** dynatrace-managed, jmx, json, extensions\
**Created:** [February 14, 2023, 4:57pm UTC](https://community.dynatrace.com/t/upload-new-version-of-jmx-pmi-extension/38442 "2023-02-14T16:57:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [February 14, 2023, 4:57pm UTC](https://community.dynatrace.com/t/upload-new-version-of-jmx-pmi-extension/38442/1 "2023-02-14T16:57:23Z")

</div>

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&nbsp;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,

```markup
"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

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [February 15, 2023, 12:11pm UTC](https://community.dynatrace.com/t/upload-new-version-of-jmx-pmi-extension/38442/2 "2023-02-15T12:11:42Z")

</div>

Can someone please help here.

Regards,

AK

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [February 16, 2023, 6:23am UTC](https://community.dynatrace.com/t/upload-new-version-of-jmx-pmi-extension/38442/3 "2023-02-16T06:23:51Z")

</div>

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

Can someone please throw some light on this topic.

Regards,

AK

---

<div class="post-metadata">

**Author:** ![JamesKitson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jameskitson/32/22460_2.png) [@JamesKitson](https://community.dynatrace.com/u/JamesKitson)\
**Post date:** [February 16, 2023, 6:49pm UTC](https://community.dynatrace.com/t/upload-new-version-of-jmx-pmi-extension/38442/4 "2023-02-16T18:49:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [February 17, 2023, 10:40am UTC](https://community.dynatrace.com/t/upload-new-version-of-jmx-pmi-extension/38442/5 "2023-02-17T10:40:33Z")

</div>

[@JamesKitson](https://community.dynatrace.com/user/6226), Thanks for the response. So, uploading new version I shall make it like below. Please correct me.

```markup
"ui": {
    "charts": [
      {
        "group": "WebApplicationSever_ThreadPool metrics",
        "title": "Active_Count",
        "series": [
          {
            "key": "ActiveCount.metric",
            "aggregation": "avg",
            "displayname": "Active_Count"
          }
        ]
      },

```

Regards,

AK
