VMware Cloud Community
admin
Immortal
Immortal

Custom java Hyperic plugin development

Have a custom Collector which is setting values

setValue("ProcUptime", "12");

Using

<service name="CustomCollector">

     <plugin type="measurement"

             class="org.hyperic.hq.product.MeasurementPlugin"/>

     <plugin type="collector"

             class="com.ash.CustomCollector"/>

     <filter name="template"

         value="customPL"/> ...

Once I set the values into Collector will this MeasurementPlugin pick those attributes from <metrics> from plugin xml and pick values from Collector?

I am not able to pick those values in HQ UI.

Could you please let me know how these custom collectors are used and how to configure one?

Thanks in advance.

Ashok

Reply
0 Kudos
1 Reply
BharaniRaviKant
Contributor
Contributor

first create a property and then use  <config> element in that use <option> now provide the metric values in it using expression language.

example

<property name="INSTALLPATH"
value="ABCDefg" />

<config>

<option name="installpath_loclation" default="${INSTALLPATH}" />

</config>

Now you can see the value picked automatically :smileygrin:

Reply
0 Kudos