How to create super metric in vRealize Operations Manager

This is my first blog posting. I have been using vROPs for some months now and I will be showing you how to create a super metric in this blog posting. I am going to be using PureStorage FlashArrays for this task.

Goal:

I will be designing a simple SuperMetric. The problem I am trying to solve here is to calculate Average Latency. I have both the read and write latency on a volume on PureStorage flash array but I am missing “Average Latency”. This is where I can utilize Super Metric, since a super metric can use simple metrics to create a new metric. I am going to be adding read and write latency together and taking a Average to create a new metric called “Average_Latency”. This is a good use case for creating super metric.

I am going to use the simple sum function in super metric to combine “Read Latency (us)”and “Write Latency (us)” metric together, since we do not have that metric available to us in vROPs for Flash array volumes. I am going to name this Super Metric as “Average_Latency”.

Login to your vRealize Operations Manager (vROPs) instance.

1

Click on Content -> SuperMetrics

1

Now I am going to walk you through the steps of creating your own supermetric. I am creating this super metric on flash array volume but you can choose any other object type as well.

Click on “+” sign to create a super metric.

sp1.png

You will see this pop window come up.

2

Click on “Function” as shown below and Select “Sum”

3

Click on “Operators” drop Down menu as shown below and select “(“ parenthesis.

4.png

Now click on Object Types as shown below and select “Pure Storage Adapter”

5.png

Here you can choose any other object type but you will have to choose the metric for that object type as well. Now you can click on any Object Type and I selected “Flash Array Volume” as shown below.

7.png

Now you can expand any Attributes and select “Flash Array Volume” metrics. For example, I selected “Read Latency (us)”. My goal is to sum “Read Latency (us)”and “Write Latency (us)”  together, since we do not have that metric available to us. So I am going to make a Super Metric called “TotalLatency”.

Double Click on “Read Latency (us)” as shown below.

8.png

Now in the formula below (as shown in the picture below) you can change the depth to a higher number like 2 to include objects like Flash array host which are higher in hierarchical chain. Every time you increase the depth by 1 you are going to be able to traverse the underlying parent object in your environment.

9

Now you can close the parenthesis as shown below by clicking on “Operators” drop down menu and selecting “)”

10.png

Now select “+” from the Operators drop down menu as shown below to add “Write Latency (us)” just like we did for “Read Latency (us)”.

11.png

I have shown the picture below to describe after you add the sum(${adaptertype=PureStorageAdapter, objecttype=Volume, attribute=Performance|Microsec_Per_Write, depth=2})

12.png

Now, Give the Super Metric a Name like I gave “Average_Latency ”, and click on “save” below.average_latency2

Highlight the SuperMetric you just created by left clicking on the row which has the SuperMetric in it. I have highlighted the super metric below in blue below.

Average_latency4.png

In the same page click on “Object Types” tab below and click on “+” sign. Now you will be adding various adapters on which this super metric will operate.

15

Select Flash Array Volume.

16

click on “Select” below.

17

You will see that “Flash Array Volume” object type has been added for this Super Metric.

Average_latency5.png

Now in order to add another object type for this super metric you have to click on “+” under “Object Types”. Click on drop down menu and select “FlashArray Host” this time.

average_latency8

click on “FlashArray Host” as shown below.

23

Now you have added two object types “Flash Array Volumes” and “Flash Array Host” to operate on “Average_Latency” SuperMetric.

Average_latency9.png

Now we have to enable this SuperMetric “Average_Latency” in our default policy.

Click on Administration -> Policies. Then click on Policy Library tab as shown below.

25.png

Select Default Policy as shown below. I am choosing this Policy since this is the policy which I am using on all objects.

26.png

Click on Edit icon as shown below.

27

Click on “Collect Metrics and Properties” as shown below.

28.png

Click on “Attribute Type” as shown below.

29.png

Make sure to uncheck the Metric and Property boxes, under Attribute Type so you can only see the “SuperMetric”. This would make it easier to see the SuperMetric only.

30.png

Highlight all the SuperMetrics with “Average_Latency” and select all of them as shown below.

average_latency11.png

Click on “Actions” and then hover on “State” and select “Enable”. This will enable all the selected SuperMetrics with “Average_Latency”.

32.png

Now go to Environment -> FlashArray Resources as shown below.

33

Click on “PureStorage World”

34.png

Click on “FlashArray Volume” as shown below.

35.png

Click on any Volume like I clicked on “”.

36.png

Click on “TroubleShooting” Tab.

37.png

Click on “All Metrics” as shown below.

38.png

Click on “SuperMetrics” as shown below.

39.png

Double Click on “Average_Latency” or the SuperMetric you just created as shown below.

average_latency14

Now you have your SuperMetric created.