From 5008b7072fcf790045a87a61cd41178499c6b7d8 Mon Sep 17 00:00:00 2001 From: Anders Swanson Date: Tue, 9 Sep 2025 13:10:07 -0700 Subject: [PATCH] wait_time metric fixes for 19c Signed-off-by: Anders Swanson --- collector/default_metrics.toml | 10 +++++----- default-metrics.toml | 10 +++++----- site/docs/releases/changelog.md | 6 ++++++ 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/collector/default_metrics.toml b/collector/default_metrics.toml index 9a7823d..bdcfe64 100644 --- a/collector/default_metrics.toml +++ b/collector/default_metrics.toml @@ -61,13 +61,13 @@ metricstype = { time_waited_sec_total = "counter" } fieldtoappend= "wait_class" request = ''' select - inst_id, - wait_class, - round(time_waited/100,3) time_waited_sec_total, - con_id + inst_id, + wait_class, + round(time_waited/100,3) time_waited_sec_total, + con_id from gv$system_wait_class where wait_class <> 'Idle' -group by inst_id, wait_class, con_id, time_waited_sec_total +group by inst_id, wait_class, con_id, round(time_waited/100,3) ''' ignorezeroresult = true diff --git a/default-metrics.toml b/default-metrics.toml index 9a7823d..bdcfe64 100644 --- a/default-metrics.toml +++ b/default-metrics.toml @@ -61,13 +61,13 @@ metricstype = { time_waited_sec_total = "counter" } fieldtoappend= "wait_class" request = ''' select - inst_id, - wait_class, - round(time_waited/100,3) time_waited_sec_total, - con_id + inst_id, + wait_class, + round(time_waited/100,3) time_waited_sec_total, + con_id from gv$system_wait_class where wait_class <> 'Idle' -group by inst_id, wait_class, con_id, time_waited_sec_total +group by inst_id, wait_class, con_id, round(time_waited/100,3) ''' ignorezeroresult = true diff --git a/site/docs/releases/changelog.md b/site/docs/releases/changelog.md index 4a50e5b..e35bb76 100644 --- a/site/docs/releases/changelog.md +++ b/site/docs/releases/changelog.md @@ -11,6 +11,12 @@ List of upcoming and historic changes to the exporter. Our current priorities are support for Exadata metrics. We expect to address these in an upcoming release. +- Updated project dependencies. +- Fix `wait_time` default metric to work with Oracle Database 19c. + +Thank you to the following people for their suggestions and contributions: +- [@romankspb](https://github.com/romankspb) + ### Version 2.0.4, September 8, 2025 This release includes the following changes: