This post is more than 5 years old

32 Posts

146944

May 1st, 2013 20:00

VM Custom Attributes *without* the velocity cartridge

I am currently running v6.7.1 which doesn't support the older cartridges.  What is the procedure to allow creation of a service for custom attributes that are setup in vCenter?  From blog post with the velocity cart method it looks like 6.7.1 should already be collecting the data.  How does one access that data to include in reports and create services from it?

171 Posts

May 1st, 2013 22:00

I removed the derived metrics from the cartridge to avoid performance issues.  You can find the rule in the cartridge.

https://www.dropbox.com/s/nhr2lz6g7gff0dw/Velocity-7_2_1.car

OR...

You can download just the groovy script and run that from the script console/editor or set it up as a rule as well.  You just have to edit the custom attribute name you want it to make services for.

https://www.dropbox.com/s/mqqbvf5855u12ke/createServicesFromCustomAttributes.groovy

32 Posts

May 2nd, 2013 12:00

Thomas, thank you very much for updating the cartridge.  I have everything working now.

32 Posts

May 2nd, 2013 15:00

One other question for you.  If I want to create a report or dashboard that shows the "business unit" name and simply how many VMs are labeled with the business unit name, where might I find the number of VMs in the BU figure?  I've found how to list the BUs by using Data > Services > Attributes > Business Unit > Definition in a table view but out of all the other variables I can't find one that will show the number of VMs in each BU.  I see things like Monitored Host > Virtual Host Count but anything in there just displays "N/A" for a value.  Is there a different way I need to be drilling into this data?

171 Posts

May 2nd, 2013 19:00

Services themselves dont have metrics like VM count associated with them.  If you wanted some sort of summary details about the contents it would have to be build in WCF most likely.  The easiest way I know is to use a function + query that returns all of the contents of a service, then the query filters the objects we want, like VMs, and we could do things like count or sum values inside of those.  So you could use this sort of concept to get total VM count, total utilization of the service, allocated memory etc...

No Events found!

Top