
Query performance logs
We're piping detailed query performance data back the logs - now performance can be traced from dashboards to individual queries, with full timing metadata up and down.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Cool. Uh I have a small demo. Um share this. So for folks who don't already know, um we have a uh this audit log feature which allows you to uh or when you run queries uh in Omni, it exports some very basic query metadata into an S3 bucket. Um which then gets routed to customer instances if they want to do that.
So they can do some basic query analytics. Um, but the amount of stuff that actually gets into the audit log is pretty limited. Like if you want to I'm just populating some queries here. Um, but if you wanted to do some like really um advanced uh query tracking or uh do a little more investigation and like query metadata like source or like runtime histograms um you can't do that through the audit log.
So, I've configured a new um log stream basically uh which we're calling the query metadata log stream. Um and that feeds out to S3. Um and that's cool because we can then query S3 via a snowflake stage and sort of use this for like some pretty advanced uh much more complete query analytics. For example, now we get a full timing data um histogram whenever you run queries uh even for re-queries, which is pretty cool if you want to expose that.
Um and we get a ton of advanced metadata. I mean, pretty much everything that Omni knows about a query, we can shove through this query metadata hash. So, the final step then is to get this linked up to our usage analytics page uh within Omni if you want to do that. Um, I couldn't quite get that up and running on my sandbox, but the data is um, available in Snowflake and piping through.
And let's make sure that record actually came in. Yeah. So, we're using fire hose to pipe pipe data over to S3 and that's working fine. So, in the audit logs that we uh, export. So, as it stands, this will go into a separate bucket entirely. Um these are distinct uh but we can consolidate them. The idea was just not to to pipe data into too many places.
Um but that's an easy switch to make if we want to do that. Does this uh is this uh data able to be joined back to a dashboard run and like a query ID and all that? Yep. Oh, very nice. Um it's got a membership ID. So it's got all the user information and it has all the um yeah query information.
It's got uh query type, query source, job ID, query ID, everything. That is awesome. Yeah, this will this will be so so awesome. We we can go create like a performance analytics report to give to everybody and then ideally eventually integrate that into the Dash performance profiler that Nate and Nancy