VMware Cloud Community
MitchNY
Contributor
Contributor

Custom Metrics Plugin

I am writing my first plugin that will monitor a flat file which has detailed metrics of one event in our system. Each event is made of multiple steps. For each step the file contains the time (ms) the step took.

Time Step1 Step2 Step3 Total
12:00 0.1 1.0 0.5 1.6
12:30 0.2 1.1 0.5 1.7
A custom monitoring system displays a stack bar graph for each event, so that the bar is made of 3 parts, one for each step.
Can Hyperic display a stacked bar graph? if not, can anyone recommend a good way to display the details of each event?
0 Kudos
3 Replies
roger_symonds
Enthusiast
Enthusiast

Hi MitchNY,

As far as I know Hyperic can't display stacked bar graphs.
I guess an option is to display four graphs:
Step 1,
Step 2,
Step 3,
Total of all Steps


This will result in a lot of graphs, but I can't think of any other way that will compress the data set.

Did you get the plug-in working?
What type of plug-in is it? I am trying to write something very similar using a script plug-in and would be keen to hear any pointers that you have.

Regards,
Roger
0 Kudos
roger_symonds
Enthusiast
Enthusiast

If you're writing a script plugin please see: [http://support.hyperic.com/confluence/display/DOCSHQ30/Script+Plugin].

One thing to note if you are going to have heaps of graphs is that you can set them to not display be default, to do this in you plugin.xml file when declaring the metric, set the indicator variable to "false".
For plugin.xml tips see: [http://support.hyperic.com/confluence/display/DOCSHQ30/Plugin+XML+Descriptor]

eg.
<metric name="Step 1" category="PERFORMANCE" indicator="false" template="${template}:Step 1"/>
0 Kudos
admin
Immortal
Immortal

Thanks, Roger.

Actually, a more up-to-date resource for plugin development is at http://support.hyperic.com/confluence/display/DOC/Plugin+Development+Center
. It also has a new tutorial on writing script plugins.

Charles

0 Kudos