Bug 536345 (RHQ-704) - UpTime metric on RHQ Agent resource type should not be tracked for baseline OOBs
Summary: UpTime metric on RHQ Agent resource type should not be tracked for baseline OOBs
Keywords:
Status: CLOSED WONTFIX
Alias: RHQ-704
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 1.1pre
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-07-31 18:14 UTC by Ian Springer
Modified: 2014-05-15 21:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-15 21:00:37 UTC
Embargoed:


Attachments (Terms of Use)

Description Ian Springer 2008-07-31 18:14:00 UTC
The metric is currently defined in the descriptor as follows:

<metric property="Uptime"
              displayName="Up Time"
              description="Total number of seconds since the agent was started"
              defaultOn="true"
              units="seconds"
              category="availability"
              measurementType="dynamic" />  <!-- changed to dynamic to prevent generation of per Minute metric. -->

Unfortunately, by changing its type to "dynamic", it will be tracked for OOBs, which doesn't make sense for up time, since it monotonically increases.

We need a way to either:

1) disable per-minute metrics for a trendsup metric (one idea is to disable per-minute metrics for trendsup metrics that have units of "seconds")
2) disable baseline OOB tracking for dynamic metrics, e.g.:

<metric property="Uptime"
              displayName="Up Time"
              description="Total number of seconds since the agent was started"
              defaultOn="true"
              units="seconds"
              category="availability"
              disableBaselines="true"
              measurementType="dynamic" />  <!-- changed to dynamic to prevent generation of per Minute metric. -->


Comment 1 Heiko W. Rupp 2008-09-14 19:30:18 UTC
1) sounds like the way to go - better extend 'seconds' to all time units.
But then there are metrics like "cpu time spent in user mode" where a per minute metric makes sense.

2) Adds a lot of stuff to the whole data model

An alternative could be to add a 'perMinute' attribute to the schema, that is true by default and which only gets parsed in org.rhq.core.clientapi.agent.metadata.MetricsMetadataParser.parseMetricsMetadata(MetricDescriptor, ResourceType) in the if-clause to determine if per minute data should be created. This new attribute would only apply to trendsup/down.

Or we could create trends{up,down}nopermin measurement types 

Comment 2 John Mazzitelli 2008-12-13 05:56:13 UTC
I'm thinking we just get rid of this metric.  What happens if we remove metric defs from a descriptor? Can the metadata manager remove it and all data/alerts/etc associated with it?

Comment 3 Red Hat Bugzilla 2009-11-10 21:15:10 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-704


Comment 5 Jay Shaughnessy 2014-05-15 21:00:37 UTC
Still there, I think we could remove it but it seems like it's not a big deal.


Note You need to log in before you can comment on or make changes to this bug.