-
Notifications
You must be signed in to change notification settings - Fork 23
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
Tablespace exposed metrics do not match the query executed on the database #151
Comments
Thanks for reporting, will take a look and get back to you shortly |
doing some research, in my adb i see the following
|
The differences in DATA and UNDO are normal, as work is being done in the database, so those should change over time. Investigating whey TEMP bytes is different. |
Hi @markxnelson, Regards, |
Referring to the documentation for this view: https://docs.oracle.com/en/database/oracle/oracle-database/21/refrn/DBA_TABLESPACE_USAGE_METRICS.html It says the following: "If the tablespace contains any datafiles with autoextend enabled, then this column displays the maximum size to which the tablespace can grow. Underlying storage free space, such as Oracle ASM or file system storage, is also taken into account when computing this value." Since ADB-S is a shared environment, other instances are likely to be on the same underlying storage too. I notice that I sometimes get the same result when I run the query and read the metric at the same time (within a few seconds), and sometimes they differ. My friendly DBA also told me "temp segment usage fluctuates rapidly, actual free space is kept in memory (until checkpointers come around and write down a point-in-time free)." I think this explains what we are seeing here. |
Hi,
we have noticed a mismatch between the metrics TEMP tablespace below:
oracledb_tablespace_bytes
oracledb_tablespace_free
oracledb_tablespace_max_bytes
oracledb_tablespace_used_percent
And the values retrieved performing the tablespace query directly on the DB.
This happens on OCI for Oracle Autonomous Databases with Standby role.
This is an example for oracledb_tablespace_free and oracledb_tablespace_used_percent:
The same happens for other tablespace metrics related to the TEMP tablespace.
Image used: container-registry.oracle.com/database/observability-exporter:1.5.1
Could you please support us?
Thanks.
Regards,
Aurelio
The text was updated successfully, but these errors were encountered: