Issue #4908 has been reported by Dan Bode.
----------------------------------------
Feature #4908: need a total resource metric that does not include default
resources (schedules/filebucket)
http://projects.puppetlabs.com/issues/4908
Author: Dan Bode
Status: Unreviewed
Priority: Normal
Assignee:
Category: reports
Target version:
Affected version: 2.6.0
Keywords:
Branch:
I have always found it confusing that the Total metric for resources is not the
same as the number of resources that a user declares. Now that all of the
resources are listed in the reports I can see that
Total = (number of resources I am managing) + (default resources I dont care
about)
Consider the following code:
<pre>
node default {
file { '/tmp/two':
content => 'blah2',
}
notify { $hostname:}
#include test
}
</pre>
here is the resource metric
<pre>
resources: !ruby/object:Puppet::Util::Metric
label: Resources
name: resources
values:
- - !ruby/sym out_of_sync
- Out of sync
- 1
- - !ruby/sym total
- Total
- 9
- - !ruby/sym changed
- Changed
- 1
</pre>
Total in this case has 7 extra resources.
The resources are:
<pre>
Schedule[weekly]
Filebucket[puppet]
Notify[puppetmaster]
File[/tmp/two]
Schedule[daily]
Schedule[hourly]
Schedule[puppet]
Schedule[monthly]
Schedule[never]
</pre>
Most of these resources are defaults that I did not declare.
It would be nice to differentiate between resources declared (or even used) vs.
these default internal resources.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.