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

How to change default CUSTOM_DEVICE chart legend from ID to NAME?




We created a custom extension plugin to retrieve stats from Nutanix, but when it's SPLIT by CUSTOM_DEVICE it's still showing UUID instead of a more meaningful name like HOST_NAME (they can be grabbed from the Nutanix API).

Screen Shot 2022-08-17 at 13.59.png


relevant code: (plugin.json)

Screen Shot 2022-08-18 at 08.50.31.png


Is there configuration to grab the host_name from the metrics in the plugin.json, or maybe from the metric's metadata as below?


Screen Shot 2022-08-17 at 23.44.03.png


Dynatrace Champion
Dynatrace Champion

Hi @Ardhi

if I understand this correctly, your ActiveGate extension is pulling the metrics from the Nutanix API and then feeding these into Dynatrace. This means you also handle how the data is sent to Dynatrace, so you will need to also specify the necessary dimension for which host(s) you are sending the data.

This means in your metrics list you will need to define something like this:

      "entity": "CUSTOM_DEVICE",
      "timeseries": {
        "key": "disk_size",
        "unit": "Count",
        "displayname": "Disk size",
        "dimensions": [

and whenever pushing a metric point you will need to pass the necessary dimension with that metric e.g.:

device.absolute(key="disk_size", value=123, dimensions={"host_name":"my_host_name"})

 Otherwise splitting by "Custom Device" will lead to split the metrics by Instance of said Extension (these are the ones created by your extension)


Hope this helps,



Featured Posts