summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/metric.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix for #3690 failing to calculate error codesJesse Wolfe2010-02-171-1/+1
| | | | | | | | | | | | | | | | | | | | | This failure was getting caused by what I believe to be a bug in Puppet::Configurer where it always generated a new Puppet::Transaction::Report, even if one existed in an outer scope. In puppetd --test, a different Report was getting queried to generate the exit status than the one that was passed to the transaction -- this Report had no Metrics and would fail when queried. This obscured a second bug that Metrics could return nil for values if the Transaction had applied an empty Catalog, but Transaction::Report assumes that values will always be integers. It could be argued that an empty Report should be populated with empty Metrics before a Transaction is run, which would have prevented Report#exit_status from raising an exception ... which would have made these bugs much harder to track down. So, I've decided to leave that unchanged. Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
* Removed extra whitespace from end of linesIan Taylor2009-06-061-4/+4
|
* Moved RRD feature from util/metric.rb to feature/base.rbJames Turnbull2008-11-171-5/+0
|
* Revert "Added last part of #1633 patch - update to util/metrics.rb"James Turnbull2008-10-101-5/+0
| | | | This reverts commit c5d1a4f6ffe72477ce02358a93d48df850aea15b.
* Added last part of #1633 patch - update to util/metrics.rbJames Turnbull2008-10-101-0/+5
|
* Adding an array indexer method to Puppet::Util::Metric as requested in #1633.Luke Kanies2008-10-081-0/+9
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Adding partial spec tests for Puppet::Util::Metric.Luke Kanies2008-10-081-9/+14
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* fix #815: add :main to all use() for :reporting and :metricsDavid Schmitt2007-11-091-1/+1
|
* Removing the Id tags from all of the filesLuke Kanies2007-10-031-1/+0
|
* Renaming the 'Puppet::Util::Config' class toLuke Kanies2007-09-221-1/+1
| | | | | | | 'Puppet::Util::Settings'. This is to clear up confusion caused by the fact that we now have a 'Configuration' class to model host configurations, or any set of resources as a "configuration".
* adjusting the rrd color stack as requested by thijsluke2007-06-141-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2584 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying metrics patch from #659 by thijsluke2007-06-141-12/+15
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2579 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the time-cleaning in the rrdgraph reportluke2007-05-061-0/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2465 980ebf18-57e1-0310-9a29-db15c13687c0
* Consolidating all of the configuration parameter declarations into ↵luke2007-05-041-12/+0
| | | | | | configuration, at least partially just because then the docs for each parameter have to be a bit better. Also, I have gotten rid of the "puppet" section, replacing it with "main", and changed, added, or removed a couple of other sections. In general, we should now prefer more sections, rather than fewer. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2463 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the Metric class old clients can still refer to the Puppet::Metric class.luke2007-03-211-0/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2339 980ebf18-57e1-0310-9a29-db15c13687c0
* Moving some of the stand-alone classes into the util/ subdirectory, to clean ↵luke2007-02-071-0/+158
up the top-level namespace a bit. This is a lot of file modifications, but most of them just change class names and file paths. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2178 980ebf18-57e1-0310-9a29-db15c13687c0