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

Custom device infographic tile

alfaprob
Newcomer

Hello, I am trying to follow this custom device example and I would like an infographic tile for my custom device which shows 2 metrics in 1 tile as in other custom devices.

alfaprob_0-1647609700506.png

 

This is the timeseries payload I am pushing:

{
    "configUrl": "https://agt19276.dev.dynatracelabs.com/#hosts/hostdetails;id=HOST-6104DF0CAE2095B9;gtf=l_2_HOURS",
    "displayName": "MacbookPro",
    "favicon": "http://www.clker.com/cliparts/E/6/d/G/w/P/gray-apple-ever-md.png",
    "ipAddresses": [
        "172.17.0.1"
    ],
    "listenPorts": [
        80,
        443
    ],
    "properties": {
        "manufacturer": "Dynatrace LLC",
        "schedule": "30secs"
    },
    "series": [
        {
            "dataPoints": [
                [
                    1647609177312,
                    42
                ],
                [
                    1647609177312,
                    43
                ]
            ],
            "dimensions": {
                "nic": "ethernetcard1"
            },
            "timeseriesId": "custom:MacbookPro.random.numberA"
        },
        {
            "dataPoints": [
                [
                    1647609177312,
                    53
                ],
                [
                    1647609177312,
                    1
                ]
            ],
            "dimensions": {
                "nic": "ethernetcard2"
            },
            "timeseriesId": "custom:MacbookPro.random.numberA"
        },
        {
            "dataPoints": [
                [
                    1647609177312,
                    79
                ]
            ],
            "dimensions": {
                "cpu": "core1"
            },
            "timeseriesId": "custom:MacbookPro.random.numberB"
        }
    ],
    "type": "MacbookPro"
}

 

But it displays 2 tiles:

alfaprob_1-1647609899778.png

 

Is it possible to combine the 2 metrics into 1 tile?

Thank you

1 REPLY 1

JamesKitson
Dynatrace Guru
Dynatrace Guru

I personally haven't used this option before but I recreated this and it looks when you go this route all of charts/key charts are come from pre-defined behavior splitting by dimensions and it is not controllable via the API.

 

The only way you can control the design/charts of those custom device charts and infographics that I am aware of is when you create an extension/plugin the plugin.json file defines the layout of these.

Featured Posts