Skip to content

Use Database Time instead of Host Time for top-query collection window #43621

@sv-splunk

Description

@sv-splunk

Component(s)

receiver/oracledb

Describe the issue you're reporting

Currently in top-query collection, the time from host is passed into the query parameter as a reference to calculate the collection window.

This logic does not work when the clocks of collector instance and the database are in different timezones, and it leads to an inaccurate collection window.

WHERE clause in current implementation:

WHERE LAST_ACTIVE_TIME >= TO_DATE(:1, 'yyyy-mm-dd hh24:mi:ss') - NUMTODSINTERVAL(:2, 'SECOND')

Proposed fix:

WHERE LAST_ACTIVE_TIME >= SYSDATE - NUMTODSINTERVAL(:1, 'SECOND')

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions