How to create a super metric in vRealize Operations 6

The steps to create a super metric have changed in version 6. I could not find a write up on this, even on my favourite sites such as Sunny Dua and Lior Kamrat blogs, so I’m writing one as my customer asked for it.

If you are not sure what super metrics to create, here are some of my customers’ favourite.

Here is a short video.

If you need it in writing (e.g. for your documentation), here we go:

To begin, click on the Content icon, then choose Super Metrics from the side list. You get something like this below. I have a few super metrics created already in the example screenshot below.

10

Click on the green Plus icon to create a new one. A dialog box will pop up. It’s pretty easy once you get used to it.

See that big red no 1. Give it a name. I use a naming convention, as you can see the previous screenshot. The naming convention I use is:

Function – Object – Element Type – Metric – in a Container.

  • Function can be Maximum, Minimum, Average, etc.
  • Object can be VM, ESXi, Cluster, etc
  • Element type is one of these: CPU, RAM, Disk, Network
  • Metric is the metric of the element. For example, a CPU can have Usage, Demand, Contention, etc.
  • “In a Container” means the container I’m applying the super metric at. I normally apply at the Cluster level.

See that big red no 2. That’s the place you choose the Object. You can choose any object from any adapter. Yes, your super metric is not limited just to vSphere objects. The list of objects are shown below the rectangle, hence you see a heading Object Types. Remember, an adapter brings many objects. The vSphere adapter gives you object like VM, ESXi, and Cluster.

Once you choose an object, its metrics will appear in the big red no 3. Now it is blank as I have not chosen any adapter yet. vRealize Operations call it Attribute. Don’t get confused with the term. Metric = counters = attributes.

11

See that big red no 4.That’s where your super metric will appear.

In the screenshot below, I’ve clicked on the Adapter Type drop down box. You can see from here the universal nature of vRealize Operations as data analytics tool. My friend Ronald Buder says it best, “It’s like a big data”.

12 choose the adapter

I chose the vSphere Adapter from the list above. The list of objects are then filtered to just what the vSphere adapters bring. From the list, I then clicked on Virtual Machine. vRealize Operations automatically lists all the VM metrics in the Attributes Types area.

13 choose the object type

From here, we are ready to choose the metric. Since there are many of them, I normally just search. So I typed “contention” and you can see the list is narrowed down.

14 choose the counter

To bring the metric into the super metric formula, simply double click on it. It will appear on the formula area. Naturally, you need to specify what transformation you want. You can choose from the list of Functions, as marked with the big red no 1. Most functions are pretty short, so I just type it. In this example, I typed the Max() manually.

Here is a tricky part. You are applying your super metric to an object. That object is normally the parent or children objects. In my case, I’m applying the super metric to a Cluster. A cluster is the parent of ESXi Host, which in turn is the parent of VM. So it’s 2 level higher. So I have to manually modify the “depth=1” to “depth=2”. This tells vRealize Operations to look up 2 level higher.

See the big red no 2. There are 3 icons there.

  • The 1st one is called This. This means you’re applying the formula to the object itself.
  • The 2nd one helps you visualize your formula. Click on it to see it in more readable format. In my case, it shows the correct formula. vRealize Operations automatically color code it. Nice!
  • The 3rd one is my favourite. This button is called the Visualize button. It lets me go back in time, and also verify if I choose the right metrics, because the result will “make sense” when I choose the right one.

See the big red no 3. Since I’m applying my super metric to a Cluster, I’ve chosen the Cluster object. Notice vRealize Operations automatically lists my 2 clusters.

15 always visualise

Click on the Visualize button. The bottom area of the dialog box got cleared, making room for a line chart to be displayed.

16

I clicked on one of the 2 clusters, and the line chart appeared.

17 be patient if it is far to the past

And that’s it! Save the dialog box. It will take you back to the main screen. From here, associate the super metric with the right object.

18 set the obect type

Is that all? Nope, you need to apply them to the objects. For that, you need to read this article.