Skip to content

preparing for 1.5.4 release #188

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

Merged
merged 11 commits into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 29 additions & 28 deletions THIRD_PARTY_LICENSES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ UPL-1.0
Copyright (c) 2016 Seth Miller <seth@sethmiller.me>
Copyright (c) 2016, 2025, Oracle and/or its affiliates.


-------------------------- Fourth Party Dependencies ---------------------------

----------------------------------- Licenses -----------------------------------
Expand Down Expand Up @@ -95,19 +94,6 @@ This product includes software developed at CoreOS, Inc.
(http://www.coreos.com/).


--------------------------------- (separator) ----------------------------------

== Dependency
github.com/go-kit/log

== License Type
SPDX:MIT

== Copyright
Copyright (c) 2014 Simon Eskildsen
Copyright (c) 2021 Go kit
Copyright 2013 The Go Authors. All rights reserved.

--------------------------------- (separator) ----------------------------------

== Dependency
Expand All @@ -126,12 +112,12 @@ Copyright 2010 The Go Authors. All rights reserved.
github.com/godror/godror

== License Type
=== MIT-039067db
=== MIT-e4e92e20
=== BSD-3-Clause--modified-by-Google
=== BSD-3-Clause--modified-by-Google
=== UPL-1.0
godror
=======
========

Copyright 2017, 2020 Tamás Gulácsi

Expand Down Expand Up @@ -455,10 +441,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

== Copyright
Copyright (c) 2015 go-logfmt
Copyright (c) 2016, 2024 Oracle and/or its affiliates.
Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2016, 2025, Oracle and/or its affiliates.
Copyright (c) 2017 The Go Authors. All rights reserved.
Copyright 2016, 2023 Tamás Gulácsi
Copyright 2016, 2020 Tamás Gulácsi
Copyright 2017, 2024 The Godror Authors
Copyright 2022, 2023 Tamás Gulácsi. All rights reserved.

--------------------------------- (separator) ----------------------------------

Expand All @@ -469,7 +457,7 @@ github.com/godror/knownpb
SPDX:Apache-2.0

== Copyright
Copyright 2019, 2021 Tamás Gulácsi
Copyright 2014, 2021 Tamás Gulácsi

--------------------------------- (separator) ----------------------------------

Expand Down Expand Up @@ -510,6 +498,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

== Copyright
Copyright (c) 2015-2020, Tim Heckman
Copyright 2015 Tim Heckman. All rights reserved.
Copyright 2018 The Go Authors. All rights reserved.
Copyright 2018 The Gofrs. All rights reserved.
Copyright 2019 Tim Heckman. All rights reserved. Use of this source code is
Expand Down Expand Up @@ -568,7 +557,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
------------------

Files: gzhttp/*
SPDX: Apache-2.0

SPDX:Apache-2.0

------------------

Expand Down Expand Up @@ -782,18 +772,19 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


The Apache Software License, Version 2.0
Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.

SPDX: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License"); You may not use this product except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. A copy of the license is also reproduced below. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX:Apache-2.0


== Copyright
Copyright (c) 2016, 2024, Oracle and/or its affiliates.
Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.

== Notices
Copyright (c) 2016, 2014, Oracle and/or its affiliates.
Copyright (c) 2016, 2020, Oracle and/or its affiliates.

--------------------------------- (separator) ----------------------------------

Expand Down Expand Up @@ -840,6 +831,7 @@ SPDX:Apache-2.0

== Copyright
Copyright 2012-2015 The Prometheus Authors
Copyright 2013 Prometheus Team

== Notices
Data model artifacts for Prometheus.
Expand All @@ -858,6 +850,7 @@ github.com/prometheus/common
SPDX:Apache-2.0

== Copyright
Copyright 2020 The Prometheus-operator Authors
Copyright 2024 The Prometheus Authors

== Notices
Expand Down Expand Up @@ -889,14 +882,14 @@ github.com/prometheus/procfs
SPDX:Apache-2.0

== Copyright
Copyright 2014-2023 The Prometheus Authors
Copyright 2017-2023 Prometheus Team
Copyright 2023 Prometheus Team
Copyright 2023 The Prometheus Authors

== Notices
procfs provides functions to retrieve system, kernel and process
metrics from the pseudo-filesystem proc.

Copyright 2014-2023 The Prometheus Authors
Copyright 2014-2015 The Prometheus Authors

This product includes software developed at
SoundCloud Ltd. (http://soundcloud.com/).
Expand Down Expand Up @@ -963,6 +956,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


== Copyright
Copyright 2009 The Go Authors.
Copyright 2024 The Go Authors. All rights reserved.

== Patents
Expand Down Expand Up @@ -1028,6 +1022,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


== Copyright
Copyright 2009 The Go Authors.
Copyright 2024 The Go Authors. All rights reserved.

== Patents
Expand Down Expand Up @@ -1093,6 +1088,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


== Copyright
Copyright 2009 The Go Authors.
Copyright 2018 The oauth2 Authors. All rights reserved.
Copyright 2024 The Go Authors. All rights reserved.

--------------------------------- (separator) ----------------------------------
Expand Down Expand Up @@ -1133,6 +1130,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


== Copyright
Copyright 2009 The Go Authors.
Copyright 2023 The Go Authors. All rights reserved.

== Patents
Expand Down Expand Up @@ -1198,6 +1196,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


== Copyright
Copyright 2009 The Go Authors.
Copyright 2024 The Go Authors. All rights reserved.

== Patents
Expand Down Expand Up @@ -1263,6 +1262,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


== Copyright
Copyright 2009 The Go Authors.
Copyright 2021 The Go Authors. All rights reserved.

== Patents
Expand Down Expand Up @@ -1299,6 +1299,7 @@ google.golang.org/protobuf
SPDX:BSD-3-Clause--modified-by-Google

== Copyright
Copyright 2024 Google Inc. All rights reserved.
Copyright 2024 The Go Authors. All rights reserved.

== Patents
Expand Down Expand Up @@ -1414,4 +1415,4 @@ SOFTWARE.

=== ATTRIBUTION-HELPER-GENERATED:
=== Attribution helper version: {Major:0 Minor:11 GitVersion:0.10.0-114-g3747dab9 GitCommit:3747dab92eb29c0dbe6409ffbb824b9ae3a04b87 GitTreeState:clean BuildDate:2024-05-31T13:48:06Z GoVersion:go1.21.4 Compiler:gc Platform:linux/amd64}
=== License file based on go.mod with md5 sum: 9703204c5fd5c441310d943839abdc4b
=== License file based on go.mod with md5 sum: 771c94b3ddce81ff2e234b02d85209e4
23 changes: 14 additions & 9 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
## Release Notes

### Unreleased

Our current priorities are support for RAC and mutliple databases (including #84 and #89). We expect to address these in an upcoming release.


### Version 1.5.4, March 3, 2025

Our current priorities are support for RAC and mutliple databases (inculding #84 and #89), and intermittent connection issues
with ADB-S when exporter is run in a container (including #169). We expect to address these in an upcoming release.
This release includes the following changes:

- Fix malloc error (#177)
- Fix Multiple custom metrics files overwrite one another (#179)
- Replace go-kit/log with log/slog, due to upstream changes in prometheus/common
- Add support for additional admin roles, exapnding list of options for `DB_ROILE` to `SYSDBA`, `SYSOPER`, `SYSBACKUP`, `SYSDG`, `SYSKM`, `SYSRAC` and `SYSASM` (#180)
- Based of this recommendation from [godror](https://github.com/godror/godror?tab=readme-ov-file#pooling), which relates to the two following items, and in discussion with the ODPI-C team, we have introduced additional parameters to allow you to set connection pool parameters, and have set defaults which will avoid fast connect cycling. It is our expectation that a fix may be produced in the underlying ODPI-C library for the underlying issue. In the mean time, these changes will avoid the conditions under which the error can occur.
- Fix malloc error (#177, #181).
- Fix intermittent connection issues with ADB-S when exporter is run in a container (#169).
- Fix Multiple custom metrics files overwrite one another (#179).
- Replace go-kit/log with log/slog, due to upstream changes in prometheus/common.
- Add support for additional admin roles, expanding list of options for `DB_ROLE` to `SYSDBA`, `SYSOPER`, `SYSBACKUP`, `SYSDG`, `SYSKM`, `SYSRAC` and `SYSASM` (#180).
- Updated some third-party dependencies.

Thank you to the following people for their suggestions and contributions:
Expand All @@ -21,16 +27,15 @@ Thank you to the following people for their suggestions and contributions:
- [@rlagyu0](https://github.com/rlagyu0)
- [@Sycri](https://github.com/Sycri)

Thank you to [@tgulacsi](https://github.com/tgulacsi) for changes in godror (https://github.com/godror/godror/issues/361, https://github.com/godror/godror/issues/360), and to [@cjbj](https://github.com/cjbj) and [@sudarshan12s](https://github.com/sudarshan12s) for support and guidance from ODPI-C (https://github.com/oracle/odpi).

In this release, we also continued some minor code refactoring.

### Version 1.5.3, January 28, 2025

*Known issue*: This release has a known issue that results in the error message `malloc(): unsorted double linked list corrupted`.
We recommend staying on 1.5.2 until a new release with a fix is available. We hope to have a fix by early March.

Our current priorities are support for RAC and mutliple databases (inculding #84 and #89), and intermittent connection issues
with ADB-S when exporter is run in a container (including #169). We expect to address these in an upcoming release.

This release includes the following changes:

- Fix over-zealous supression of errors when `ignorezeroresult = true` (#168).
Expand Down
2 changes: 1 addition & 1 deletion collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func (e *Exporter) connect() error {
e.logger.Debug(fmt.Sprintf("set max open connections to %d", e.config.MaxOpenConns))
db.SetMaxOpenConns(e.config.MaxOpenConns)
db.SetConnMaxLifetime(0)
e.logger.Debug(fmt.Sprintf("Successfully configured connection to %d" + maskDsn(e.connectString)))
e.logger.Debug(fmt.Sprintf("Successfully configured connection to %s", maskDsn(e.connectString)))
e.db = db

if _, err := db.Exec(`
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.22.4
require (
github.com/BurntSushi/toml v1.4.0
github.com/alecthomas/kingpin/v2 v2.4.0
github.com/godror/godror v0.46.1-0.20250226074503-67aeda640090
github.com/godror/godror v0.47.0
github.com/oracle/oci-go-sdk/v65 v65.84.0
github.com/prometheus/client_golang v1.21.0
github.com/prometheus/common v0.62.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbV
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/godror/godror v0.46.1-0.20250226074503-67aeda640090 h1:9/ZPRz24+4QrrU/xB0I+AAXKzLV2xtG+mn+9zb3cQCg=
github.com/godror/godror v0.46.1-0.20250226074503-67aeda640090/go.mod h1:44hxVDzvFSwc+yGyRM+riCLNAY5SwZkUfLzVTh5MXCg=
github.com/godror/godror v0.47.0 h1:GZsaMOIvLqgTPPVXFIavRI4mqwNIhmcFfEZbzWeabGE=
github.com/godror/godror v0.47.0/go.mod h1:44hxVDzvFSwc+yGyRM+riCLNAY5SwZkUfLzVTh5MXCg=
github.com/godror/knownpb v0.1.2 h1:icMyYsYVpGmzhoVA01xyd0o4EaubR31JPK1UxQWe4kM=
github.com/godror/knownpb v0.1.2/go.mod h1:zs9hH+lwj7mnPHPnKCcxdOGz38Axa9uT+97Ng+Nnu5s=
github.com/gofrs/flock v0.8.1 h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw=
Expand Down