top of page

Aria Operations Super Metric attaching Datastore Metrics to Clusters

  • Writer: Brock Peterson
    Brock Peterson
  • Jun 15
  • 2 min read

Updated: Aug 18

I was working on an Aria Operations Dashboard focused on Cluster capacity, it looked like this.


ree

In the middle widget (the list view), I have several different metrics for the Clusters: CPU, Memory, Disk, etc. But I wanted to include Datastore Disk Space metrics here as well, related to a specific Datastore. My first thought, use the related objects capability introduced in 8.18. Unfortunately, Cluster to datastore isn't a 1-1 mapping, and there is no way to filter just the Datastore I want, so it's not clear what Datastore will be selected. So, Super Metric it is.


First, since Datastore Disk Space Used (%) isn't available out-of-the-box, I created a Super Metric for this first. It look's like this and is available here if you want it.


ree

Next let's create the Cluster Super Metric attaching the Datastore metric I want to the Cluster, giving me the ability to add it to my List View. The real trick is in filtering on the specific Datastore you want, which we can do with a where clause.


ree

Here's a closer look, it's also up on Github if you want to download it.

max({‌Datastore: ‌Super Metrics|Datastore Disk Space Used, depth=3, where=({metric=‌: ‌Configuration|Name} contains 'Datastore' )})

As you can see it's defined against the Cluster Compute Resource object type. I'm using a max() function because {‌Datastore: ‌Super Metrics|Datastore Disk Space Used, depth=3, where=({metric=‌: ‌Configuration|Name} contains 'Datastore' )} returns a list (list of 1 in this case). There where clause defines the Datastore against which you're going to pull the metric, in my case a Datastore named "Datastore", keep in mind this is case-sensitive. Thanks for pointing this out Artur Bazoyan! You'll want to edit this to whatever your Datastore is named.


It validates fine and previews as expected.



Preview shows 46.07%, which is what we would expect to see based on the Datastore named Datastore, attached to the Cluster I previewed.


ree

We can now add the related Datastore Disk Space Used (%) metric to the List View included in our Dashboard.


ree

Hope this helps, enjoy!

    bottom of page