Daniel
My aproach to do this, is use synapse esb to geneate proxy's to the
monitorized services, so when a composite service is register to
monitorize i generate all the configuracion for the services proxies,
and with custom mediator obtain the necessary metrics (in this case
response time and aviability). So the application change the composite
service to call the proxys service generated and this proxy service
bypass the message calling my mediators.
If what you require is just to get metrics on proxy services (such as
response time etc), we already do have a way to compute these
statistics. However, as Synapse does not have a administration console
yet, you are obviously not able to see these anywhere.. Indika did some
changes recently to make these statistics available over JMX. So any
proxy service you deploy at runtime will have its metrics available over
JMX. You may build your own console to use this information or even take
a look at the WSO2 ESB which has the ability to display these metrics on
its admin console
<http://wso2.org/project/esb/java/1.6/docs/administratorguide.html#Monitoring>
if that applies.
asankha