Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
on 12-11-2017 04:18 PM - edited on 09-07-2018 11:07 AM by Nina.Wolinsky
We now have a funnel query possible apart from using the Funnel creation from UI widget. A few examples of how it can be used are shown below:
General syntax:
select funnel(<field>, step filters, showHealth=true, health="NORMAL"), * from transactions
Examples:
SELECT funnel(transactionName, responseTime < 90, showHealth=true, health="NORMAL") FROM transactions
SELECT funnel(requestGUID, userExperience!='SLOW', userExperience='NORMAL') FROM transactions
SELECT funnel(userExperience, responseTime > 0) FROM transactions LIMIT 1000
If you wish to use the funnel query, here are some key points that need to be considered:
1. funnel by default does a COUNT DISTINCT where as a simple query like (SELECT ip, pagename , count(*) FROM browser_records WHERE pagename='Landing Page') does not.
2. Also this second query by default limits the results to the top 10 values, If you want to see more values, use the LIMIT clause, something like below
Note: Remember though, there’s a limit to the maximum number of rows returned for an aggregation query.
To see the visualization of this funnel query result, click on "Basic" (There is a link on the top right of this ADQL search box, named "Basic"). When you click on that after getting the result for your query, that will show you the funnel diagram and to return back to the data view similarly click on "Advanced" option. Refer to the attached screenshots for clarity.
Known issues/Limitations related to funnel:
1. Funnel Queries are timing out on high cardinality fields on OA (Already Fixed in 4.4)
Query like below:
SELECT funnel(requestGUID, userExperience IN ("NORMAL", "ERROR")) FROM transactions
is timing out (be it funnel widget or adql query) while this below query runs just fine.
SELECT funnel(userExperience, userExperience IN ("NORMAL", "ERROR")) FROM transactions
2. Funnel query if followed by fields in Select statement does not work (Fixed in 4.4)
A query like this does not work as of now.
SELECT funnel(userExperience, responseTime > 0), eventTimestamp, userExperience, application, transactionName, responseTime, segments.tier, segments.node FROM transactions LIMIT 1000
SELECT funnel(userExperience, responseTime > 0) FROM transactions LIMIT 1000
3. Funnel query kills performance
Executing this query kills performance in OA43 - resulting all data nodes to get around 99% CPU
SELECT funnel(segments.userData.queryStringADQL, userExperience IN ("SLOW", "VERY_SLOW", "STALL"), segments.userData.queryStringADQL *_LIKE_* "SELECT") FROM transactions WHERE application = "prd43-analytics" AND transactionName = "/events/query" LIMIT 2000
AND wildcard
SELECT funnel(segments.userData.queryStringADQL, userExperience IN ("SLOW", "VERY_SLOW", "STALL"), segments.userData.queryStringADQL = _"SELECT*"_) FROM transactions WHERE application = "prd43-analytics" AND transactionName = "/events/query" LIMIT 100
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form