VMware Cloud Community
gruiz
Contributor
Contributor

Vrops environment dashboard based on vsphere tags

Hi all, i have a question using vrops 6.5.

I need to create a view/dashboard that show the amount of Production/Test/Dev Vms that exists on my vcenter. I created the Prod, Dev and Test custom group based on vsphere tags but i dont know how to put this data on a View or a Dashboard.

The brief...i need a pie chart showing the % of Prod Vms, Dev Vms and test Vms.

Thank you guys!

6 Replies
ooajala
Enthusiast
Enthusiast

If you are familiar with creating a View in vROPs, all you have to do is the following:

1. Create a New View

2. Select the type of view you want, in this case, Under Presentation > Select Distribution > Under Visualisation > Select Pie Chart, Under Distribution Type > Select Discrete Distribution

3. Under Subject > Select Virtual Machine object

4. Under Data > Drop down to select Properties > Expand Summary -> Double click on vSphere Tag metric.

5. Under the Data button to the right of the window > Rename your metric to something more familiar > Like VM Inventory By Prod and Non-Prod

6. Under the Filter button > Filter for each vSphere tag that you have. Selection should look similar to the below:

pastedImage_16.png

7. Finally you can select a source (vCenter Adapter > vSphere World) at the top right corner to verify that your pie chart is populating correctly.

8. Click Save

That's it!

Let me know if you need further assistance on this.

--
*** If you like my response, please click "Like" below, if you think I answered your question to the best of my abilities, please mark post as Correct Answer ***

3x vROps Environments implemented across my organization. VDI vROPs 8.4 ::: Epic vROPs 8.4 ::: Shared vROPs 7.0
vROPs Adapters in use: EpicCare & Horizon View Adapter 2.1
gruiz
Contributor
Contributor

Sorry, but didnt work for me. I have created a category named "Environment" and three tags (Prod, Dev and test). When I create the View, in the filter Menu i choose the tag in the following structure:

[<Category-tag>]. For example [<Environment-Dev>]. Doing this i receive garbage results ...like a graph with variables like [..] [,,,] [,,,,,].

Thanks.

Reply
0 Kudos
sxnxr
Commander
Commander

We had numerous problems with vsphere tags. The two main ones

  1. Relies on the inventory database on the vcenter. We had problems and had to rebuild them and lost all the tags
  2. the format in vrops was not very clear and easy to read.

To get around this we used the REST API to create custom properties in vrops against the objects. This way it is all within vrops and the value of the property is reported back exactly how it is typed in. The two down sides is it is static but this can be said for vcenter tags and once the property is created it cant be deleted. The value can be changed but the property cant be change or deleted.

I would recommend using the API to create the custom properties. As an example we added the EOSL date for all our hosts and now i can create a bar chart showing all our hosts and when there EOSL date is and how many need replaced. Below is an example of how powerful custom properties can be.

host eosl.png

ooajala
Enthusiast
Enthusiast

What version of vROPs are you running this on? Also can you show me a screenshot when you try to apply your filter?

--
*** If you like my response, please click "Like" below, if you think I answered your question to the best of my abilities, please mark post as Correct Answer ***

3x vROps Environments implemented across my organization. VDI vROPs 8.4 ::: Epic vROPs 8.4 ::: Shared vROPs 7.0
vROPs Adapters in use: EpicCare & Horizon View Adapter 2.1
Reply
0 Kudos
sxnxr
Commander
Commander

It is running on 6.4. I have no filter as i dont need to filter anything this shows me all my hosts regardless of vcenter. The only time i would apply a filter is if i wanted to exclude a specific year.

This is the config. As you can see it is using the custom property i have against the hosts.

host eosl bar.png

Reply
0 Kudos
ooajala
Enthusiast
Enthusiast

gruiz Your subject should be Virtual Machine not Host System since you wanted a pie chart showing number of VMs in Production, Stage and Dev.

For the pie chart to show split parts of the pie, you have to set a filter for each tag as I have indicated in my full instructions before.

--
*** If you like my response, please click "Like" below, if you think I answered your question to the best of my abilities, please mark post as Correct Answer ***

3x vROps Environments implemented across my organization. VDI vROPs 8.4 ::: Epic vROPs 8.4 ::: Shared vROPs 7.0
vROPs Adapters in use: EpicCare & Horizon View Adapter 2.1
Reply
0 Kudos