Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log SQL Lab query execution phase durations #2819

Closed
mistercrunch opened this issue May 25, 2017 · 0 comments
Closed

Log SQL Lab query execution phase durations #2819

mistercrunch opened this issue May 25, 2017 · 0 comments
Assignees

Comments

@mistercrunch
Copy link
Member

Now that we have statsD logging setup for DataDog, let's add query phase duration. We'd like to know avg duration time for phases of query with these new keys:

  • query_total_duration
  • query_pending_duration
  • query_execution_duration
  • query_results_backend_push_duration

It should be a matter of adding a call to stats_logger.incr(key, value) like here:
https://github.com/airbnb/superset/blob/master/superset/models/core.py#L755

in places like here:
https://github.com/airbnb/superset/blob/master/superset/sql_lab.py#L118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants