{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Edge/API Management /
avatar image
1
Question by sgilson · Jun 11, 2015 at 02:18 PM · 142 Views api proxyanalyticspoliciesstatistics collector

Are multiple StatisticsCollector policies allowed in a proxy?

I used the Beta version of the Solution Builder to create custom analytics variables for an API proxy. When I configured it, I selected a request variable (a query param) and a response variable (a response header) to track.

The Solution Builder created two ExtractVariables policies and two StatisticsCollector policies: one each in the request flow and in the response flow.

But the doc states that you are only allowed to put one StatisticsCollector policy in a proxy, and it must be in the response flow.

Has that restriction been removed?

Thanks,

Stephen

Comment
Add comment Show 1
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image gnanasekaran ♦ · Jun 11, 2015 at 02:44 PM 0
Link

I am also curious to know, I thought we could always attach multiple stats collector policies, for eg, i remember using it in response and fault flows

Close

1 Answer

  • Sort: 
avatar image
2
Best Answer

Answer by sgilson · Jun 15, 2015 at 01:36 PM

So it looks like you can put a StatisticsCollector anywhere in the API proxy, meaning in any request or response flow, but you can only use one StatisticsCollector policy in the API proxy. If there are multiple StatisticsCollectors in an proxy, the last one to execute determines the data written to the analytics server.

Stephen

Comment
Add comment Show 3 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image gnanasekaran ♦ · Jun 15, 2015 at 05:40 PM 0
Link

ok, so it also mean, I could have 2 statistics collector policies one in response and one in fault flow - only of them would execute for any message based on whether its success or fault

avatar image sgilson ♦♦ gnanasekaran ♦ · Jun 15, 2015 at 05:52 PM 0
Link

I have not tried that, but from my tests, it should work.

avatar image sudheendras ♦ gnanasekaran ♦   · Jun 19, 2015 at 06:19 AM 0
Link

According to the docs, you can have multiple Statistics Collector policies in an API proxy. Say one in the request or response flow, and another in a fault handler. If a fault occurs in the API proxy, then the Statistics Collector in the fault handler determines the data collected. You can use that Statistics Collector to record information about the fault, or to record any other information that you think necessary. The Statistics Collector in the fault handler determines the data collected regardless of whether or not the Statistics Collector in the request/response already executed.

Follow this Question

Answers Answers and Comments

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How does Concurrent Rate Limit policy work? 2 Answers

policy mashup - latency 1 Answer

Error: Missing select parameter : while fetching analytics data from management server on 13 node cluster 2 Answers

Multiple Values to a Single Custom Dimension/Stats Collector 2 Answers

Fetching value of an Query param having special characters ex: '+' using ExtractVariables Policy 1 Answer

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2019 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Members
  • Badges