-
Notifications
You must be signed in to change notification settings - Fork 375
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
Collect runtime metrics from Ruby environment #677
Conversation
5469aea
to
be6e3fd
Compare
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.
cool, no major issues I see
00725c6
to
d56b496
Compare
10f1961
to
16dac13
Compare
16dac13
to
5cf1d4a
Compare
5cf1d4a
to
dcd79f9
Compare
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.
Great Job @delner! Looks like really awesome addition!
Left one suggestion about using counters to correctly process some metrics. Otherwise looks good!
ecea8e1
to
1b53343
Compare
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.
one minor doc change, otherwise this is looking great
We are deferring requested changes since it doesn't really effect Ruby metrics at this time.
1b53343
to
a30d84f
Compare
In an effort to improve insight into application performance, we'd like to collect metrics that describe the Ruby environment, so that this data can be displayed with traces in the Datadog trace page.
This pull request adds two major new parts to the tracer:
Datadog::Metrics
which is an application level Statsd instance which can be used to send metrics. If Statsd is available, it will autoconfigure its client to send stats to the agent on UDP port8125
.Datadog::Runtime
namespace which contains functions for collecting stats from the runtime environment. This is used in theAsyncWorker
thread to collect and broadcast runtime metrics to the client configured withinDatadog::Metrics
.TODO:
runtime-id
tagservice
tag