Hi all,
I am working on implementing $subject.
At the moment we are using a synapse handler (APIMgtUsageHandler) to
publish usage data. It is getting invoked for every request and response
which reaches the gateway. But we don't have a way to collect stats for
requests that leaves the gateway based on where it went. This become very
useful for cases where the same API can reach different endpoints (ex:
Loadbalanced endpoints)
As a solution we are hoping to the below.
1. In the start-up, create a bam profile config with a stream definition
for publishing required information. This happens only if usage tracking is
enabled.
2. Add an option in create API page to enable destination based usage
tracking.
3. If above enabled,
3.1 Add new property to endpoint config of API synapse
configuration to track where request went.
3.2 Add BAM mediator after the send mediator.
3. Update API manager analytic toolbox with new Hive queries to summarize
destination based data.
4. Add new graph to APIM Statistics dashboard showing number of access to
destination addresses by each API.
Thanks,
Lakmali
--
Lakmali Baminiwatta
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile: +94 71 2335936
blog : lakmali.com
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture