I have a few questions and need some guidance on creating a new Monitor.
I have an Alerts XML Data Feed which I get from a URL and I can pull that information every few minutes.
I would like to show in a Dashlet these alerts as a Tabular format.
Alert Name : (dataType String) .e.g Response Time Alert/ or Transaction Failure Alert
Time: (dataType Time)
Status : (dataType String)
Description : (dataType Text)
Response Time : (dataType ms)
Number of Sites (dataType number)
My question is, when I create the Monitor/Monitor Plugin, and when I define the Metrics should I define metrics for AlertName, Time, Status, Description, ResponseTime, Number of Sites?
The only metrics are Time, Response Times and Number of Sites?
What are the options to create such a plugin which have some of the information in Textual Format?
Thanks
Rajesh
Answer by Andreas G. ·
Hi Rajesh
A Monitor Plugin can ONLY return numeric measures. If you want to display a nice table with textual content there would be one workaround.
Your monitor can
a) provide the numeric values so that you can later put it into a chart + get stored in the Perf Warehouse
b) create an HTML file that contains the data you want to show on a dashboard in your table like formatting. The monitor can store this HTML file on a web server. Now you can put a Web Page Dashlet on your dashboard that shows that generated HTML file.
Andi
Hi Andi
Thank you, those are interesting options.
Is there an example of how the monitor can store the HTML file on the web server, or does any existing plugin does it and I can use the same techniques?
I think this might satisfy the needs to get external alerts with descriptions.
Thanks,
Rajesh
Unfortunately I dont have an example - but I know it has been done before. The Monitor is just a Java Plugin - so - you can write any type of file you want. If you install an Apache on the same machine as the collector where the plugin runs you can just create that html file in the directory served by Apache. All you then need is a dashboard with a Web Page Dashlet
JANUARY 15, 3:00 PM GMT / 10:00 AM ET