Fetching Analytics data from API Proxy

nejra
New Member

Hi,

I want to fetch Apigee Analytics data in Apigee API proxy and was thinking about calling Metrics API via ServiceCallout or custom javascript code. Is this recommended behavior or there is another way of doing this? We are using Edge for Private Cloud.

Thanks!

Solved Solved
0 3 169
1 ACCEPTED SOLUTION

You can do that.

Generally it is not recommended to use an API Proxy to front the management API. Generally. The API Runtime is guaranteed to have 99.9% or 99.99% availability, while the management API is not. Of course we strive to make the Management API always available, but in some cases there are service disruptions. Therefore any API Proxy that depends on the management API will have lower practical operational service levels.

However, there are exceptions to this "rule". You may want to do some post-processing in the API proxy, or you may want to introduce a different security verification, or maybe caching. (All the things an API PRoxy is good at). And (IMPORTANT) you don't expect to call the management API with high throughput or concurrency. In other words your API Proxy will serve something around or less than 1 transaction per second.

In those cases, it's perfectly fine to do what you're proposing.

View solution in original post

3 REPLIES 3

You can do that.

Generally it is not recommended to use an API Proxy to front the management API. Generally. The API Runtime is guaranteed to have 99.9% or 99.99% availability, while the management API is not. Of course we strive to make the Management API always available, but in some cases there are service disruptions. Therefore any API Proxy that depends on the management API will have lower practical operational service levels.

However, there are exceptions to this "rule". You may want to do some post-processing in the API proxy, or you may want to introduce a different security verification, or maybe caching. (All the things an API PRoxy is good at). And (IMPORTANT) you don't expect to call the management API with high throughput or concurrency. In other words your API Proxy will serve something around or less than 1 transaction per second.

In those cases, it's perfectly fine to do what you're proposing.

Thanks, we will continue with this approach.

Hi @Nejra Husak,

Instead of creating api proxy, better approach is to create a script and have it in cron job.

We had set up alerting in our project using this approach.

For example, if there are ten 5XX errors for a particular API PROXY, then we use to get an email notification