Matrix tile fails to render Used Space or Avg Transfer Speed for disks.

Hi,

I have a strange issue whereby neither the Used Space bar or the Avg Transfer Speed sparkline fails to render in our production environment for any servers.

I’ve checked that the associated child objects have performance data and they do.

Does anyone have any clues on where I should start looking to troubleshoot the issue?

Best regards

Pete

Here is an example of what we see:

And here is the config JSON:

{
	"_type": "tile/matrix",
	"config": {
		"context": {
			"scope": {
				"classId": "d0718456-aa7e-7b92-8a46-6a2d762d32a7",
				"type": "children",
				"criteria": ""
			},
			"stepSummary": "children"
		},
		"display": {
			"rendering": "dynamic",
			"perspective": {
				"id": "bf9d8c9f-6305-40d4-945f-ba681e642a32"
			},
			"mode": "default"
		}
	},
	"title": "Disks",
	"description": ""
}

Hi,

this is a problem with the matrix tile perspective for Windows Server. It is the same with Linux server and scoped hosted objects like disks.

Look at this part of the matrix tile description:

Performance data for the tile is queried per column using the tile scope. This data needs to be grouped together for each object, so that it can be displayed correctly for the appropriate row. By default it is grouped assuming that the objects are unhosted or top-level objects such as Computers, Network Devices, or Distributed Applications. If your tile is scoped to hosted child objects such as disks, websites or databases then you will need to override the default grouping behaviour with the below example under the config section.

https://support.squaredup.com/v4/Walkthroughs/Tiles/HowToUseTheMatrixTile/

 

 

Please try this for the AVG Transfer Speed:

	{
		"_type": "celltile/scomperf-as-sparkline",
		"config": {
			"display": {
				"labelTemplate": "{{ ( value ? Math.round(value*1000) + 'ms/transfer' : '-' ) }}"
			},
			"source": {
				"countername": "Avg. Disk sec/Transfer",
				"objectname": "LogicalDisk "
			},
			"transforms": [
				{
					"operator": "group",
					"parameters": {
						"keys": [
							"managedEntityId"
						]
					}
				},
				{
					"operator": "merge",
					"parameters": {
						"sourceKey": "id",
						"targetKey": "key.managedEntityId"
					}
				}
			]
		},
		"title": "Avg Transfer Speed"
	}

Kind regards

Thanks Moji.

That’s got the Avg Transfer Speed working. But any clues on how to get the used space also working? I tried changing the grouping as described and it still doesn’t work for that performance counter.

Succesfully just with the sparkline and not with the bar chart…

	{
		"_type": "celltile/scomperf-as-sparkline",
		"config": {
			"display": {
				"valueTemplate": "{{( value ? (100 - Math.round(value)) : 0 )}}"
			},
			"source": {
				"countername": "% Free Space",
				"objectname": "LogicalDisk"
			},
			"transforms": [
				{
					"operator": "group",
					"parameters": {
						"keys": [
							"managedEntityId"
						]
					}
				},
				{
					"operator": "merge",
					"parameters": {
						"sourceKey": "id",
						"targetKey": "key.managedEntityId"
					}
				}
			]
		},
		"title": "% Free Space"
	},

Thanks Moji.

I struggled for a while trying to get it working using the bar celltile but to no avail.

Do you have any idea what the issue might be there?

{
  "title": "Free Megabytes",
  "_type": "celltile/scomperf-as-sparkline",
  "config": {
      "source": {
    "objectname": "LogicalDisk",
    "countername": "Free Megabytes"
      },
      "display": {
    "labelTemplate": "{{ ( value ? Math.round(value) + ' MB' : '-' ) }}"
      },
      "transforms": [
    {
        "operator": "group",
        "parameters": {
      "keys": [
          "managedEntityId"
      ]
        }
    },
    {
        "operator": "merge",
        "parameters": {
      "sourceKey": "id",
      "targetKey": "key.managedEntityId"
        }
    }
      ]
  }
 },

I’ve got this for Free MB if that’s any help?

No, I tried it myself and gave it up …