Skip to content

Commit 017acdd

Browse files
wait_time metric fixes for 19c (#346)
Signed-off-by: Anders Swanson <anders.swanson@oracle.com>
1 parent 257a70b commit 017acdd

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

collector/default_metrics.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ metricstype = { time_waited_sec_total = "counter" }
6161
fieldtoappend= "wait_class"
6262
request = '''
6363
select
64-
inst_id,
65-
wait_class,
66-
round(time_waited/100,3) time_waited_sec_total,
67-
con_id
64+
inst_id,
65+
wait_class,
66+
round(time_waited/100,3) time_waited_sec_total,
67+
con_id
6868
from gv$system_wait_class
6969
where wait_class <> 'Idle'
70-
group by inst_id, wait_class, con_id, time_waited_sec_total
70+
group by inst_id, wait_class, con_id, round(time_waited/100,3)
7171
'''
7272
ignorezeroresult = true
7373

default-metrics.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ metricstype = { time_waited_sec_total = "counter" }
6161
fieldtoappend= "wait_class"
6262
request = '''
6363
select
64-
inst_id,
65-
wait_class,
66-
round(time_waited/100,3) time_waited_sec_total,
67-
con_id
64+
inst_id,
65+
wait_class,
66+
round(time_waited/100,3) time_waited_sec_total,
67+
con_id
6868
from gv$system_wait_class
6969
where wait_class <> 'Idle'
70-
group by inst_id, wait_class, con_id, time_waited_sec_total
70+
group by inst_id, wait_class, con_id, round(time_waited/100,3)
7171
'''
7272
ignorezeroresult = true
7373

site/docs/releases/changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ List of upcoming and historic changes to the exporter.
1111

1212
Our current priorities are support for Exadata metrics. We expect to address these in an upcoming release.
1313

14+
- Updated project dependencies.
15+
- Fix `wait_time` default metric to work with Oracle Database 19c.
16+
17+
Thank you to the following people for their suggestions and contributions:
18+
- [@romankspb](https://github.com/romankspb)
19+
1420
### Version 2.0.4, September 8, 2025
1521

1622
This release includes the following changes:

0 commit comments

Comments
 (0)