-
Notifications
You must be signed in to change notification settings - Fork 95
Let each metric configure itself, and encapsulate its configuration #91
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
Conversation
# graph_engine_options :bluff | ||
|
||
# @param metric_name [Symbol] | ||
def metric(metric) |
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.
Not sure if this should be class_level or not. I haven't settled on what should be exposed to the outside and at what level it should be configured or re-configured
@@ -6,7 +6,7 @@ def title | |||
end | |||
def data | |||
[ | |||
['rails_best_practices', @rails_best_practices.join(',')] | |||
['rails_best_practices', @rails_best_practices_count.join(',')] |
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.
bug fix to pull into its own PR
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.
ah, heh, now I see that you already caught this as well.
MetricFu.configuration.metrics -= [ metric ] | ||
MetricFu.configuration.graphs -= [ metric ] | ||
mf_debug "active metrics are #{MetricFu.configuration.metrics.inspect}" | ||
MetricFu::Metrics.get_metric(metric).enabled = false |
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.
I think this should be MetricFu::Metric.get_metric...
(rather than Metrics)?
@bf4 - working on the "Too many open files" issue. Trying to repro so I can be certain I've fixed the problem. Can you give me an idea of how big the project is that you are seeing this on, as well as ruby version? |
@robincurry cruby 1.9.3-p448 with rvm, reasonably sized legacy rails project |
Conflicts: spec/spec_helper.rb
Conflicts: lib/metric_fu/io.rb
Let's talk about which PR should be closed / worked on and merged and where to summarize notes for going forward. |
No description provided.