-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Metricbeat][Oracle] Field oracle.tablespace.space.total.bytes
is missing
#38051
Comments
There is some mismatch in between Oracle metricbeat module logic and Oracle integration logic Metricbeat module Logic Currently in oracle there are two different kind of queries written to fetch space.total.bytes, space.free.bytes, space.used.bytes based on TEMP and NON-TEMP tablespaces.
Space.free.bytes :- Collected from FREE_SPACE field of DBA_TEMP_FREE_SPACE table.
Space.free.bytes :- Collected as SUM(bytes) of DBA_FREE_SPACE table. Integration Logic Now currently to collect this same fields there are different queries in integration.
Space.free.bytes :- Collected from FREE_SPACE field of DBA_TEMP_FREE_SPACE table.
Space.free.bytes :- Collected as SUM(bytes) of DBA_FREE_SPACE table. In integration Space.total.bytes is total size of TEMP and NON-TEMP tablespaces. Space.total.bytes :- Total of ( SUM(bytes) of DBA_DATA_FILES + SUM(bytes) of DBA_TEMP_FILES ) @agithomas can you please provide your thoughts here, based on above possible values what should be set as a value of Space.total.bytes for NON-TEMP tables in metricbeat module? |
@niraj-elastic , Unless there exists any reason for not using the logic used in the Integrations, the same approach can be used in Oracle Metricbeat module. |
@agithomas, Currently if tablespace is |
Ok, what are you proposing? |
@agithomas By doing some more analysis it seems that |
Description
The field oracle.tablespace.space.total.bytes is absent from the Table Space Metric set.
Cause
The query used to retrieve the Table Space metric for other than TEMP space is missing the calculation for Total bytes based on the collected bytes of read and write operations. This calculation is present for TEMP spaces but not for other spaces.
Query: Link to the query
Performing an aggregation (SUM) on the field BYTES will provide us with the total bytes for the tablespace.
The text was updated successfully, but these errors were encountered: