6 Replies Latest reply on May 18, 2017 11:55 AM by ooajala

    Vrops environment dashboard based on vsphere tags

    gruiz Lurker

      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!

        • 1. Re: Vrops environment dashboard based on vsphere tags
          ooajala 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:

          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.

          • 2. Re: Vrops environment dashboard based on vsphere tags
            gruiz Lurker

            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.

            • 3. Re: Vrops environment dashboard based on vsphere tags
              sxnxr Expert
              vExpert

              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

              • 4. Re: Vrops environment dashboard based on vsphere tags
                ooajala Enthusiast

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

                • 5. Re: Vrops environment dashboard based on vsphere tags
                  sxnxr Expert
                  vExpert

                  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

                  • 6. Re: Vrops environment dashboard based on vsphere tags
                    ooajala 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.