-
Notifications
You must be signed in to change notification settings - Fork 244
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
feat: Added support for sending custom datadog metrics from querybook #1390
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Julian, thanks for submitting this PR and the code lgtm, can you make datadog not a required dependency for Querybook in dev mode? Would it work if you move those code to example documentation instead?
Datadog is now an optional dependency |
@czgu can you help to look the PR again? |
This PR includes the setup of
dogstatsd
, a python library used for sending metrics to Datadog as well as the creation of a new stats logger,DatadogStatsLogger
.In addition, it includes 5 metrics:
celery.active_workers
,celery.active_tasks
,task.received
,task.failures
, andtask.successes
The first 2 metrics are sent to datadog every 5 seconds by opening a new thread which continuously runs the
send_stats_logger_metrics
function. The other 3 metrics are triggered by event handlers so they are sent whenever a task is received by a worker, a task fails, or a task succeeds.