lemonzone2010 / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

In the collector server, enhance the external API #305

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the collector server, it may be useful to enhance the external API 
(xml/json) to get data about monitored applications.

As said in 
https://groups.google.com/forum/#!topic/javamelody/_RcVE3HuiB4/discussion :

Is it possible to retrieve a list of monitored servers configured in the 
centralized collector web-app interface ?

Is it possible to know the state of each monitored servers (up, down) and to 
request it automatically every X minutes ?

Original issue reported on code.google.com by evernat@free.fr on 2 May 2013 at 11:00

GoogleCodeExporter commented 9 years ago
This probably needs a change given some parameter in createSerializable here:
https://code.google.com/p/javamelody/source/browse/trunk/javamelody-core/src/mai
n/java/net/bull/javamelody/CollectorController.java#287

and to return something like the following:
new HashMap<String, 
Thowable>(collectorServer.getLastCollectExceptionsByApplication())

Original comment by evernat@free.fr on 2 May 2013 at 11:16

GoogleCodeExporter commented 9 years ago
and completed by Parameters.getCollectorUrlsByApplications().keySet()

Original comment by evernat@free.fr on 2 May 2013 at 11:25

GoogleCodeExporter commented 9 years ago
Done.
It's committed in trunk (revision 3414) and ready for the next release (1.46).

I have made a new build of the collector server and it is available at:
http://javamelody.googlecode.com/files/javamelody-20130608.war
For example, you can all the collector server every X minutes with the 
following parameters:
?part=applications&format=json

Original comment by evernat@free.fr on 8 Jun 2013 at 9:20