# ActiveGate remote plugins: varying metrics

**URL:** <https://community.dynatrace.com/t/activegate-remote-plugins-varying-metrics/19878>\
**Category:** Extensions\
**Tags:** activegate, dynatrace-managed, snmp, extensions\
**Created:** [July 22, 2020, 4:46pm UTC](https://community.dynatrace.com/t/activegate-remote-plugins-varying-metrics/19878 "2020-07-22T16:46:21Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![juanjo\_garcia](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/juanjo_garcia/32/35378_2.png) [@juanjo\_garcia](https://community.dynatrace.com/u/juanjo_garcia)\
**Post date:** [August 22, 2020, 11:51am UTC](https://community.dynatrace.com/t/activegate-remote-plugins-varying-metrics/19878/8 "2020-08-22T11:51:43Z")

</div>

Hi Georg.

I am developing an ActiveGate Extension in wich I have a Metric with 2 Dimensions but I am running into an issue: none of the two values are being stored into it.

This is the Metric definition in the **plugin.json** File:

**{**

**“entity”: “CUSTOM\_DEVICE”,**

**“timeseries”: {**

**“key”: “trains.wait2”,**

**“unit”: “Count”,**

**“dimensions”: [“train”, “locationstation”],**

**“displayname”: "trains.wait2"a**

**}**

**}**

And this is the **Python** Code to insert the values into it:

**self.device.absolute(“trains.wait2”, oFieldValue[‘Wait1’], {“train”: str(self.szTrain), “stationlocation”: str(self.szLocationStation)})**

According to the official Documentation on Dynatrace, the dimensions Parameter is a Dictionary of two strings {‘key’, ‘value’}

If I define the Metric with only 1 Dimension, it works:

**{**

**“entity”: “CUSTOM\_DEVICE”,**

**“timeseries”: {**

**“key”: “trains.wait2”,**

**“unit”: “Count”,**

**“dimensions”: [“train”],**

**“displayname”: “trains.wait2”**

**}**

**}**

**self.device.absolute(“trains.wait2”, oFieldValue[‘Wait1’], {“train”: str(self.szTrain})**

Please can you tell me what is wrong ?

Thank you very much.

---

_[View the full topic](https://community.dynatrace.com/t/activegate-remote-plugins-varying-metrics/19878)._
