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

Plugin Dimension Help

scott_criscilli
Newcomer

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!!


4 REPLIES 4

Mike_L
Dynatrace Pro
Dynatrace Pro

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


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


No worries, good luck with the plugin!


tarjei
Organizer

Does the dimensions work for OneAgent plugin as well?