Was this helpful?

Possible causes

  • There is a change in the number of users (fewer users = lower traffic).
  • There is a change in the number of apps calling an API (fewer call s= lower traffic).
  • There is a change in the ability of the API to handle traffic. The network may be down, or the API has a new Quota policy that is restricting traffic.
  • There is a change in the amount of legitimate traffic (i.e. real user calls vs. attacks). Attacks could be taking up your bandwidth.

Try this

  • Use contextual analytics to look for traffic spikes or drops.
  • Generate a traffic report to see which apps have a change in the amount of traffic they are sending to an API.
  • Look at traffic for specific resources a period of time to see if individual resources are experiencing drops/spikes.

Use contextu​al analytics

  1. Look for large changes in traffic in the All API traffic chart. This will give you sense of when the change occurred. For example, suppose you see that a spike occurred in mid August. When you investigate further you'll want to look at this time period in particular.
  2. Check the Top API movers chart. You can see which APIs had the highest drop or increase in traffic.

Generate a custom traffic report

A custom traffic report will let you examine specific apps and URIs to see exactly where the problem is occurring. ​The report will tell which apps have had a change in traffic. For each app you can see the traffic trend for all the APIs the app calls. You create an App traffic report by using apps the main measure with drill down on the requested URI by app.

Set up the primary measure

  1. On the Analytics tab, click Custom Reports.
  2. Click the +Custom Report button.

  3. Enter App Traffic Report as the Report Name.
  4. Enter a brief description of the report in the Report Description field.
  5. Select the Column chart type.
  6. Select Hourly as the Aggregation Interval.
  7. Select prod from the Environment menu.
  8. Select traffic as the Y-Axis Measure. This will let you see traffic data.
  9. Select Sum as the Aggregate Function.

Set up chart dri​ll down

These selections will determine how you can refine the view of your content.

  1. Choose Developer App as Drilldown 1. Use this measure to see all the apps in your org. This lets you see the traffic by app.
  2. Choose Request Uri as Drilldown 2. This dimension will break up the traffic by API.
  3. Click Save to generate the report.

Analyze the report

  1. Look for an app that's showing a large change in traffic. You can change the time period to see traffic trends over time.

  2. Click on the app you want review to drill down into more details. Again, using the time period menu, can view requests made by the app over various time periods to understand the nature of the traffic spike or drop. Look to see if individual resources are seeing a drop in the traffic or if it's the whole API. If only one resource is seeing a drop, it points to a possible network issue or reduced usage of a specific resource.

Decide on an action

If you're see a drop in an individual resource you may want to investigate your network infrastructure. If you're seeing unusual traffic patterns to your apps you may be under an attack that is eating up your bandwidth. If you're seeing a traffic increase to the whole API you may want to examine how the API is configured. You may have a policy that is limiting your traffic. In this case you can use Trace to inspect the message flow of your API.

Add new comment

Provide your email address if you wish to be contacted offline about your comment.
We will not display your email address as part of your comment.

We'd love your feedback and perspective! Please be as specific as possible.
Type the characters you see in this picture. (verify using audio)

Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.