new default metric collection intervals

John Mazzitelli mazz at redhat.com
Mon Sep 26 16:06:50 UTC 2011


This is : https://bugzilla.redhat.com/show_bug.cgi?id=642416

I am going to go through our plugin XML metadata for all plugins and I 
will remove most of the default intervals. I will also turn off many 
metrics (defaultOn="false")

This is because most of the metrics are not interesting to most people 
so there is no need to collect them out of box (this will lessen the 
load on the server, agent and DB backend as well).

Also, the fallback interval defaults will be increased. When a metric 
definition is parsed from metadata and persisted, the default collection 
interval (if not explicitly stated in the plugin descriptor XML) is 
determined in: MetricsMetadataParser.parseMetricsMetadata().

Based on the kind of metric (dynamic, trait, calltime), whether it is a 
"summary" metric or a "detail" metric, and based on if it is a metric 
for a platform, server or service resource, we determine a default 
collection interval. I am going to increase those defaults. Here is the 
current defaults, along with my proposed increases - let me know what 
you think about the new values (too high? too low?). The intervals 
listed below are in minutes:

                      DEFAULTS
Metric Type        Current, New
=================================================
NUMERIC METRICS:
   SUMMARY:
     Platform:      1       10
     Server:        5       20
     Service:      10       30

   DETAIL: (these are just doubled from above)
     Platform:      2       20
     Server:       10       40
     Service:      20       60

TRAITS:
   SUMMARY:        10       30
   DETAIL:         30       60

CALLTIME:          1       10

ANY OTHER METRIC: 10       30

(side note: for those not familiar, a metric is set as a "summary" 
metric by the "displayType" attribute in the <metric> metadata - its 
just a way to let the system know you want to show its graph on the main 
Monitoring tab - if it is a "detail" as opposed to "summary" metric, the 
graph isn't shown by default and we just show the data in the Tables 
subtab of the Monitoring tab).


More information about the rhq-devel mailing list