Skip to content

Commit 446d28a

Browse files
markxnelsonanders-swanson
andauthoredMar 3, 2025
preparing for 1.5.4 release (#188)
* preparing for 1.5.4 release * Float and log processings * slog fixes --------- Signed-off-by: Mark Nelson <mark.x.nelson@oracle.com> Signed-off-by: Anders Swanson <anders.swanson@oracle.com> Co-authored-by: Anders Swanson <anders.swanson@oracle.com> Co-authored-by: Anders Swanson <91502735+anders-swanson@users.noreply.github.com>
1 parent 6e102e5 commit 446d28a

File tree

5 files changed

+47
-39
lines changed

5 files changed

+47
-39
lines changed
 

‎THIRD_PARTY_LICENSES.txt

+29-28
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ UPL-1.0
88
Copyright (c) 2016 Seth Miller <seth@sethmiller.me>
99
Copyright (c) 2016, 2025, Oracle and/or its affiliates.
1010

11-
1211
-------------------------- Fourth Party Dependencies ---------------------------
1312

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

9796

98-
--------------------------------- (separator) ----------------------------------
99-
100-
== Dependency
101-
github.com/go-kit/log
102-
103-
== License Type
104-
SPDX:MIT
105-
106-
== Copyright
107-
Copyright (c) 2014 Simon Eskildsen
108-
Copyright (c) 2021 Go kit
109-
Copyright 2013 The Go Authors. All rights reserved.
110-
11197
--------------------------------- (separator) ----------------------------------
11298

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

128114
== License Type
129-
=== MIT-039067db
115+
=== MIT-e4e92e20
130116
=== BSD-3-Clause--modified-by-Google
131117
=== BSD-3-Clause--modified-by-Google
132118
=== UPL-1.0
133119
godror
134-
=======
120+
========
135121

136122
Copyright 2017, 2020 Tamás Gulácsi
137123

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

456442
== Copyright
457443
Copyright (c) 2015 go-logfmt
458-
Copyright (c) 2016, 2024 Oracle and/or its affiliates.
444+
Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.
445+
Copyright (c) 2016, 2025, Oracle and/or its affiliates.
459446
Copyright (c) 2017 The Go Authors. All rights reserved.
460-
Copyright 2016, 2023 Tamás Gulácsi
447+
Copyright 2016, 2020 Tamás Gulácsi
461448
Copyright 2017, 2024 The Godror Authors
449+
Copyright 2022, 2023 Tamás Gulácsi. All rights reserved.
462450

463451
--------------------------------- (separator) ----------------------------------
464452

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

471459
== Copyright
472-
Copyright 2019, 2021 Tamás Gulácsi
460+
Copyright 2014, 2021 Tamás Gulácsi
473461

474462
--------------------------------- (separator) ----------------------------------
475463

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

511499
== Copyright
512500
Copyright (c) 2015-2020, Tim Heckman
501+
Copyright 2015 Tim Heckman. All rights reserved.
513502
Copyright 2018 The Go Authors. All rights reserved.
514503
Copyright 2018 The Gofrs. All rights reserved.
515504
Copyright 2019 Tim Heckman. All rights reserved. Use of this source code is
@@ -568,7 +557,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
568557
------------------
569558

570559
Files: gzhttp/*
571-
SPDX: Apache-2.0
560+
561+
SPDX:Apache-2.0
572562

573563
------------------
574564

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

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

789-
SPDX: Apache-2.0
778+
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.
779+
780+
SPDX:Apache-2.0
790781

791782

792783
== Copyright
793-
Copyright (c) 2016, 2024, Oracle and/or its affiliates.
784+
Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
794785

795786
== Notices
796-
Copyright (c) 2016, 2014, Oracle and/or its affiliates.
787+
Copyright (c) 2016, 2020, Oracle and/or its affiliates.
797788

798789
--------------------------------- (separator) ----------------------------------
799790

@@ -840,6 +831,7 @@ SPDX:Apache-2.0
840831

841832
== Copyright
842833
Copyright 2012-2015 The Prometheus Authors
834+
Copyright 2013 Prometheus Team
843835

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

860852
== Copyright
853+
Copyright 2020 The Prometheus-operator Authors
861854
Copyright 2024 The Prometheus Authors
862855

863856
== Notices
@@ -889,14 +882,14 @@ github.com/prometheus/procfs
889882
SPDX:Apache-2.0
890883

891884
== Copyright
892-
Copyright 2014-2023 The Prometheus Authors
893-
Copyright 2017-2023 Prometheus Team
885+
Copyright 2023 Prometheus Team
886+
Copyright 2023 The Prometheus Authors
894887

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

899-
Copyright 2014-2023 The Prometheus Authors
892+
Copyright 2014-2015 The Prometheus Authors
900893

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

964957

965958
== Copyright
959+
Copyright 2009 The Go Authors.
966960
Copyright 2024 The Go Authors. All rights reserved.
967961

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

10291023

10301024
== Copyright
1025+
Copyright 2009 The Go Authors.
10311026
Copyright 2024 The Go Authors. All rights reserved.
10321027

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

10941089

10951090
== Copyright
1091+
Copyright 2009 The Go Authors.
1092+
Copyright 2018 The oauth2 Authors. All rights reserved.
10961093
Copyright 2024 The Go Authors. All rights reserved.
10971094

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

11341131

11351132
== Copyright
1133+
Copyright 2009 The Go Authors.
11361134
Copyright 2023 The Go Authors. All rights reserved.
11371135

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

11991197

12001198
== Copyright
1199+
Copyright 2009 The Go Authors.
12011200
Copyright 2024 The Go Authors. All rights reserved.
12021201

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

12641263

12651264
== Copyright
1265+
Copyright 2009 The Go Authors.
12661266
Copyright 2021 The Go Authors. All rights reserved.
12671267

12681268
== Patents
@@ -1299,6 +1299,7 @@ google.golang.org/protobuf
12991299
SPDX:BSD-3-Clause--modified-by-Google
13001300

13011301
== Copyright
1302+
Copyright 2024 Google Inc. All rights reserved.
13021303
Copyright 2024 The Go Authors. All rights reserved.
13031304

13041305
== Patents
@@ -1414,4 +1415,4 @@ SOFTWARE.
14141415

14151416
=== ATTRIBUTION-HELPER-GENERATED:
14161417
=== 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}
1417-
=== License file based on go.mod with md5 sum: 9703204c5fd5c441310d943839abdc4b
1418+
=== License file based on go.mod with md5 sum: 771c94b3ddce81ff2e234b02d85209e4

‎changelog.md

+14-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
## Release Notes
22

3+
### Unreleased
4+
5+
Our current priorities are support for RAC and mutliple databases (including #84 and #89). We expect to address these in an upcoming release.
6+
7+
38
### Version 1.5.4, March 3, 2025
49

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

8-
- Fix malloc error (#177)
9-
- Fix Multiple custom metrics files overwrite one another (#179)
10-
- Replace go-kit/log with log/slog, due to upstream changes in prometheus/common
11-
- Add support for additional admin roles, exapnding list of options for `DB_ROILE` to `SYSDBA`, `SYSOPER`, `SYSBACKUP`, `SYSDG`, `SYSKM`, `SYSRAC` and `SYSASM` (#180)
12+
- 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.
13+
- Fix malloc error (#177, #181).
14+
- Fix intermittent connection issues with ADB-S when exporter is run in a container (#169).
15+
- Fix Multiple custom metrics files overwrite one another (#179).
16+
- Replace go-kit/log with log/slog, due to upstream changes in prometheus/common.
17+
- Add support for additional admin roles, expanding list of options for `DB_ROLE` to `SYSDBA`, `SYSOPER`, `SYSBACKUP`, `SYSDG`, `SYSKM`, `SYSRAC` and `SYSASM` (#180).
1218
- Updated some third-party dependencies.
1319

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

30+
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).
31+
2432
In this release, we also continued some minor code refactoring.
2533

2634
### Version 1.5.3, January 28, 2025
2735

2836
*Known issue*: This release has a known issue that results in the error message `malloc(): unsorted double linked list corrupted`.
2937
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.
3038

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

3641
- Fix over-zealous supression of errors when `ignorezeroresult = true` (#168).

‎collector/collector.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ func (e *Exporter) connect() error {
385385
e.logger.Debug(fmt.Sprintf("set max open connections to %d", e.config.MaxOpenConns))
386386
db.SetMaxOpenConns(e.config.MaxOpenConns)
387387
db.SetConnMaxLifetime(0)
388-
e.logger.Debug(fmt.Sprintf("Successfully configured connection to %d" + maskDsn(e.connectString)))
388+
e.logger.Debug(fmt.Sprintf("Successfully configured connection to %s", maskDsn(e.connectString)))
389389
e.db = db
390390

391391
if _, err := db.Exec(`

‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ toolchain go1.22.4
77
require (
88
github.com/BurntSushi/toml v1.4.0
99
github.com/alecthomas/kingpin/v2 v2.4.0
10-
github.com/godror/godror v0.46.1-0.20250226074503-67aeda640090
10+
github.com/godror/godror v0.47.0
1111
github.com/oracle/oci-go-sdk/v65 v65.84.0
1212
github.com/prometheus/client_golang v1.21.0
1313
github.com/prometheus/common v0.62.0

‎go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbV
2222
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
2323
github.com/godror/godror v0.46.1-0.20250226074503-67aeda640090 h1:9/ZPRz24+4QrrU/xB0I+AAXKzLV2xtG+mn+9zb3cQCg=
2424
github.com/godror/godror v0.46.1-0.20250226074503-67aeda640090/go.mod h1:44hxVDzvFSwc+yGyRM+riCLNAY5SwZkUfLzVTh5MXCg=
25+
github.com/godror/godror v0.47.0 h1:GZsaMOIvLqgTPPVXFIavRI4mqwNIhmcFfEZbzWeabGE=
26+
github.com/godror/godror v0.47.0/go.mod h1:44hxVDzvFSwc+yGyRM+riCLNAY5SwZkUfLzVTh5MXCg=
2527
github.com/godror/knownpb v0.1.2 h1:icMyYsYVpGmzhoVA01xyd0o4EaubR31JPK1UxQWe4kM=
2628
github.com/godror/knownpb v0.1.2/go.mod h1:zs9hH+lwj7mnPHPnKCcxdOGz38Axa9uT+97Ng+Nnu5s=
2729
github.com/gofrs/flock v0.8.1 h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw=

0 commit comments

Comments
 (0)
Failed to load comments.