Duration : 20 mins
Persona : API Team
Let’s say your API has gained wide adoption. It’s popular. You have attracted a number of talented, creative app developers and people are downloading and installing their apps. The API team is very interested in how the API is performing, how it’s being used, and how to plan for improvements.
Apigee Edge Analytics Services collects and analyzes a wealth of information associated with your APIs. This information is gathered, analyzed, and provided to you in near-real time. In this lab we will see how you can extend the Edge analytics services by create custom dimensions and metrics and use them in custom reports.
Custom Reports
There are several out-of-the-box, standard reports that are automatically provided for every Edge organization. They track several critical operational metrics, such as proxy response time, target response time, cache performance, and error rates. An API publisher can create custom reports to augment the standard reports. By adding custom reports, you can create a set of charts that provide insight into the exact aspects of your API program that you wish to analyze.
In this lab, you will create a custom report to provide insight into the consumption of your APIs.
An existing API proxy created in Apigee Edge.
Traffic to API Proxy.
Go to https://apigee.com/edge and log in. This is the Edge management UI.
Select Analyze → Reports in the side navigation menu.
Once you have saved the Custom Report you can view it immediately. You should see something similar to the following:
Note: Data delay interval - After API calls are made to proxies, it takes about 10 minutes for the data to appear in dashboards, custom reports, and management API calls.
If no data is returned, verify that the timeframe of the Custom Report matches a timeframe where traffic was being sent to the API.
Also, verify that the appropriate Environment (in this case test) has been selected on the top right dropdown.
You can select from a large number of custom drilldown dimensions. Drilldown dimensions let you specify which dimensions to measure in your custom report. Apigee Edge Analytics collects data on a wide range of dimensions. And, you can also select any custom dimensions that have been created in your organization. See Analytics reference.
To drill down into the custom report you just created, click on the name of your Proxy under the Summary on the bottom of the report.
You should now be able to view a drill-down into the Request Path dimension for your API Proxy.
When you’ve completed building your custom report, the data is populated immediately. The graph is defaulted to plot the first metric you chose for the tab in your custom report. If you want to see different metrics, or compare them against each other, follow these steps:
Click the report name to view the graphs of the selected report.
Click the Edit button to edit the display name, dimensions, and measures.
Click Save.
You also have the option to delete a report by clicking the Delete button.
If you like to learn by watching, here is a short video on creating a custom report.
You can extend the Edge analytics services by using the Statistics collector policy to extend custom dimensions and metrics for use in Custom reports.
The Statistics Collector policy enables you to collect custom statistics for data in a request/response, such as product ID, price, etc. The data can come from flow variables predefined by Apigee or custom variables that you define. The statistics data is passed to the analytics server, which analyzes the statistics and generates reports. You can view the reports by using the Edge management UI or Edge API.
What is the difference between a dimension and a metric?
What happens when you drill down into additional dimensions?
In this exercise, you learned about custom reports in Apigee Edge. You also added the custom report along with other reports to a custom dashboard. Please visit the documentation to see the different kinds of operational reports and dashboards that are available to you.
Useful Apigee documentation links on API Analytics -
Apigee Analytics dashboards documentation http://docs.apigee.com/analytics-services/content/analytics-dashboards
Analytics Best Practices https://apigee.com/about/blog/digital-business/api-best-practices-analytics
Watch this 4 minute video on “Custom Reports using Apigee Edge Analytics” - https://youtu.be/lTcuc2so4oI
Congratulations on completing this Apigee API Jam! Continue learning about Apigee with the Apigee Learning Guide on Apigee Community.