# Plugin dimension in ActiveGate

**URL:** <https://community.dynatrace.com/t/plugin-dimension-in-activegate/18646>\
**Category:** Extensions\
**Tags:** activegate, extensions\
**Created:** [November 30, 2018, 3:07pm UTC](https://community.dynatrace.com/t/plugin-dimension-in-activegate/18646 "2018-11-30T15:07:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott\_criscilli](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@scott\_criscilli](https://community.dynatrace.com/u/scott_criscilli)\
**Post date:** [November 30, 2018, 3:07pm UTC](https://community.dynatrace.com/t/plugin-dimension-in-activegate/18646/1 "2018-11-30T15:07:21Z")

</div>

I’m writing an ActiveGate remote plugin and have everything working as expected with the exception of figuring out dimensions. I have network devices with a variable count of interfaces and I’m wanting to graph out metrics for each interface. So far all I’m getting is an aggregation of all interfaces into a single metric within a single chart. What I’d like to do is have each interface graphed out within a single chart or worst case have a chart for each interface.

**From my json here’s my metrics entry:**

{  
“entity”: “CUSTOM\_DEVICE”,  
“timeseries”: {  
“key”: “nodetraffic”,  
“unit”: “Byte”,  
“dimensions”: [“nodenamedim”],  
“displayname”: “Node Traffic”  
}

**json charts entry:**

{  
“group”: “Network Interfaces”,  
“title”: “Interface Traffic”,  
“description”: “Interface Traffic”,  
“explanation”: “Not used”,  
“link”: “Demo link”,  
“series”: [  
{  
“key”: “nodetraffic”,  
“displayname”: “Node Test”,  
“aggregation”: “avg”,  
“mergeaggregation”: “avg”,  
“color”: “#008cdb”,  
“seriestype”: “line”,  
“rightaxis”: false,  
“stacked”: false,  
“unit”: “PerSecond”,  
“metricexplanation”: “Not used”  
}  
]  
}

**Plugin entry (from within a for loop of interfaces)**

NetDevice.relative(key=“nodetraffic”, value=nodein, dimensions = {“nodenamedim” : node\_name})

Any assistance you could provide would be greatly appreciated!!

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [November 30, 2018, 3:26pm UTC](https://community.dynatrace.com/t/plugin-dimension-in-activegate/18646/2 "2018-11-30T15:26:17Z")

</div>

Hi,

Move the json charts entry to the “charts” section of the plugin.json, and out of the “keycharts” section. Also, drop the mergeaggregation property.

Mike

---

<div class="post-metadata">

**Author:** ![scott\_criscilli](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@scott\_criscilli](https://community.dynatrace.com/u/scott_criscilli)\
**Post date:** [November 30, 2018, 3:49pm UTC](https://community.dynatrace.com/t/plugin-dimension-in-activegate/18646/3 "2018-11-30T15:49:37Z")

</div>

Thank you sir - perfect! It was that mergeaggregation property getting me.

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [November 30, 2018, 3:52pm UTC](https://community.dynatrace.com/t/plugin-dimension-in-activegate/18646/4 "2018-11-30T15:52:47Z")

</div>

No worries, good luck with the plugin!

---

<div class="post-metadata">

**Author:** ![tarjei\_utnes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tarjei_utnes/32/26934_2.png) [@tarjei\_utnes](https://community.dynatrace.com/u/tarjei_utnes)\
**Post date:** [July 9, 2019, 7:37pm UTC](https://community.dynatrace.com/t/plugin-dimension-in-activegate/18646/5 "2019-07-09T19:37:29Z")

</div>

Does the dimensions work for OneAgent plugin as well?
